v2

latestOpenAPI 3.0.02026-07-261677104.9 KB
Testing

Retrieve a tokenized test credit card

Retrieve a test credit card that can be used to process payments in your Bolt testing environment. The response includes the card's Bolt credit card token.

post/testing/credit-cards

Request body

type'approve' | 'decline' required

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

Example request

{
  "type": "approve"
}

Response

Successfully generated test credit card details

network'visa' | 'mastercard' | 'amex' | 'discover' | 'jcb' | 'dinersclub' | 'unionpay' | 'alliancedata' | 'citiplcc' required

The credit card's network.

binstring required

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

last4string required

The account number's last four digits.

expirationstring date-time required

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

tokenstring required

The Bolt token associated with the credit card.

Example response

{
  "network": "visa",
  "bin": "411111",
  "last4": "1004",
  "expiration": "2023-10-31T06:00:00Z",
  "token": "a1B2c3D4e5F6G7H8i9J0k1L2m3N4o5P6Q7r8S9t0"
}