Add payment method

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Add a payment method using a source, e.g. one-time card token ct_.... An existing customer can be referenced or a new customer can be created in an atomic operation.

Errors

The operation can generate the following errors beside the generic HTTP error codes described here.

Error code HTTP codeDescription
9404Customer not found
34400Invalid card token provided as source
40404Payment method not found
103400Card token already used
104400Card token has expired
Body Params
string

Optional reference given to the created payment method. Max length 64 with allowable characters [a-zA-Z0-9_.-@].

customer
object

Create customer object

string
required
length ≥ 1

The payment method source, e.g. a one-time card token ct_....

string

Customer reference to an existing customer. Either this argument or customer must be provided.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json