POST
Retrieve a tokenized test credit card

Authorizations

X-API-Key
string
header
required

Body

application/json
type
enum<string>
required

The expected authorization result when using the generated token for a payment.

Available options:
approve,
decline
Example:

"approve"

Response

Successfully generated test credit card details

network
enum<string>
required

The credit card's network.

Available options:
visa,
mastercard,
amex,
discover,
jcb,
dinersclub,
unionpay,
alliancedata,
citiplcc
Example:

"visa"

bin
string
required

The Bank Identification Number (BIN). This is typically the first 4 to 6 digits of the account number.

Pattern: ^\d+$
Example:

"411111"

last4
string
required

The account number's last four digits.

Pattern: ^\d{4}$
Example:

"1004"

expiration
string<date-time>
required

The token's expiration date. Tokens used past their expiration will be rejected.

Example:

"2023-10-31T06:00:00Z"

token
string
required

The Bolt token associated with the credit card.

Example:

"a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0"