---
title: "Retrieve a tokenized test credit card"
method: POST
path: "/testing/credit-cards"
tags: ["Testing"]
---

# Retrieve a tokenized test credit card

`POST /testing/credit-cards`

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.

## Request body

- object
  - `type` 'approve' | 'decline', required — The expected authorization result when using the generated token for a payment.

## Response `200`

Successfully generated test credit card details

- TestCreditCard
  - `network` 'visa' | 'mastercard' | 'amex' | 'discover' | 'jcb' | 'dinersclub' | 'unionpay' | 'alliancedata' | 'citiplcc', required — The credit card's network.
  - `bin` string, required — The Bank Identification Number (BIN). This is typically the first 4 to 6 digits of the account number.
  - `last4` string, required — The account number's last four digits.
  - `expiration` string, date-time, required — The token's expiration date. Tokens used past their expiration will be rejected.
  - `token` string, required — The Bolt token associated with the credit card.

## Other responses

- `4XX` — An error has occurred, and further details are contained in the response
- `default` — An error has occurred, and no further details are provided (e.g. 5xx errors)

---

[API](https://skmtc.dev/bolt/apis/bolt-api-reference-2.md) · [All operations](https://skmtc.dev/bolt/apis/bolt-api-reference-2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/bolt/bolt-api-reference-2/revisions/18e78f3cf6f3/schema)
