POST/simulations/card_tokens

Sandbox: Create a Card Token

Simulates tokenizing a card in the sandbox environment.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

6 body fields
capabilitiesarray<object>optional
The capabilities of the outbound card token.
expirationstringoptional
The expiration date of the card.
last4stringoptional
The last 4 digits of the card number.
outcomeobjectoptional
The outcome to simulate for card push transfers using this token.
prefixstringoptional
The prefix of the card number, usually the first 8 digits.
primary_account_number_lengthintegeroptional
The total length of the card number, including prefix and last4.

3 status codes
200Card Token
created_atstringrequired
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which the card token was created.
expiration_datestringrequired
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date when the card expires.
idstringrequired
The Card Token's identifier.
last4stringrequired
The last 4 digits of the card number.
lengthintegerrequired
The length of the card number.
prefixstringrequired
The prefix of the card number, usually 8 digits.
typestringrequired
A constant representing the object's type. For this resource it will always be `card_token`.
Allowed:card_token
4XXError
5XXError