Create payment method

Attach a payment method to a customer using a gateway token.

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

The unique identifier of the site associated with your account.

int32
required

The unique identifier of the customer for which to create the payment method for.

Body Params
string
required

One of "stripe", "braintree", "tap", "vantiv", or "cybersource". See full list of supported payment gateways.

string
required

The unique identifier of the payment method object as it exists on the payment gateway.

properties
object

The properties of the payment method. These vary based on the payment gateway as follows:

stripe

none required

tap

tap_customer_id: the unique identifier of the customer on Tap.

vantiv

cnpTxnId: the cnpTxnId.
networkTransactionId: the networkTransactionId
exp_month: the month of the expiry date of the card.
exp_year: the year of the expiry date of the card.
last4: the last four digits of the card.
card_type: the card type

cybersource

exp_month: the month of the expiry date of the card.
exp_year: the year of the expiry date of the card.
last4: the last four digits of the card.
card_type: the card type

string

Alternative to customer_id. If provided, resolves the customer by their old_provider_id instead. Must match the same customer as customer_id if both are provided.

Headers
string
required
Defaults to Bearer eyJ***
Responses

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