Swap an external token

Use /token to swap a partner token for our token. Instead of migrating PCI tokens manually, reuse the token already provided by your payment partner. Contact our support to get the list of supported partners.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
Defaults to 401881

First 6 digits of the card number (BIN)

string
required
Defaults to 1234

Last 4 digits of the card number

string
required
Defaults to 08

Expiry month of the card (2 digits, e.g. 08)

string
required
Defaults to 2025

Expiry year of the card (4 digits, e.g. 2025)

string
required
Defaults to John Doe

Name of the card owner as shown on the card

string
required
Defaults to visa

Payment method attached to the external token

string
required
Defaults to stripe

Partner that issued the token

string
required
Defaults to cGF5bWVudG1ldGhvZF9jY19jbTYzbWtmZw

Partner token to swap (see partner-specific docs)

string
enum
required
Defaults to psp_token

For subscription flow, always use psp_token

Allowed:
string
enum
required
Defaults to recurring

For subscription flow, always use recurring

Allowed:
string

Conditional. Required for Stripe. The value to use is the customer value from the response of this endpoint: https://docs.stripe.com/api/payment_methods/update

Headers
string
required

Private API key

string
required
Defaults to 1.0.0
string
required
Defaults to application/json
Response

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