v4

OpenAPI 3.1.02026-08-012402353.8 MB

Sandbox: Create a Card Token

Simulates tokenizing a card in the sandbox environment.

post/simulations/card_tokens

Request body

expirationstring date

The expiration date of the card.

last4string

The last 4 digits of the card number.

prefixstring

The prefix of the card number, usually the first 8 digits.

primary_account_number_lengthinteger

The total length of the card number, including prefix and last4.

Example request

{
  "capabilities": [
    {
      "cross_border_push_transfers": "supported",
      "domestic_push_transfers": "supported",
      "route": "visa"
    }
  ],
  "expiration": "2020-01-31T23:59:59Z",
  "last4": "1234",
  "prefix": "41234567",
  "primary_account_number_length": 16
}

Response

Card Token

created_atstring date-time required

The ISO 8601 date and time at which the card token was created.

expiration_datestring date required

The ISO 8601 date when the card expires.

idstring required

The Card Token's identifier.

last4string required

The last 4 digits of the card number.

lengthinteger required

The length of the card number.

prefixstring required

The prefix of the card number, usually 8 digits.

type'card_token' required

A constant representing the object's type. For this resource it will always be card_token.

Example response

{
  "created_at": "2020-01-31T23:59:59Z",
  "expiration_date": "2020-01-31",
  "id": "outbound_card_token_zlt0ml6youq3q7vcdlg0",
  "last4": "1234",
  "length": 16,
  "prefix": "46637100",
  "type": "card_token"
}