Skip to main content
GET
/
customers
/
{customer_id}
/
instruments
/
{instrument_id}
/
cryptogram
Fetch cryptogram for a saved card instrument
curl --request GET \
  --url https://sandbox.cashfree.com/pg/customers/{customer_id}/instruments/{instrument_id}/cryptogram \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>'
{
  "instrument_id": "54deabb4-ba45-4a60-9e6a-9c016fe7ab10",
  "token_requestor_id": "22457512314",
  "card_number": "4491365621601472",
  "card_expiry_mm": "06",
  "card_expiry_yy": "2025",
  "cryptogram": "AQBBBBBBZatIlaIAmWKSghwBBBB=",
  "card_display": "1234"
}

Authorizations

x-client-id
string
header
required

Client app ID. You can find your app id in the Merchant Dashboard.

x-client-secret
string
header
required

Client secret key. You can find your secret in the Merchant Dashboard.

Headers

x-api-version
string
default:2022-09-01
required

API version to be used. Format is in YYYY-MM-DD

x-request-id
string

Request id for the API call. Can be used to resolve tech issues. Communicate this in your tech related queries to cashfree

x-idempotency-key
string<UUID>

Idempotency works by saving the resulting status code and body of the first request made for any given idempotency key, regardless of whether it succeeded or failed. Subsequent requests with the same key return the same result, including 500 errors.

Currently supported on all POST calls that uses x-client-id & x-client-secret. To use enable, pass x-idempotency-key in the request header. The value of this header must be unique to each operation you are trying to do. One example can be to use the same order_id that you pass while creating orders

Path Parameters

customer_id
string
required

Your Customer ID that you had sent during create order API POST/orders

instrument_id
string
required

The instrument_id of the saved card instrument which needs to be queried

Response

OK

Crytogram Card object

instrument_id
string

instrument_id of saved instrument

token_requestor_id
string

TRID issued by card networks

card_number
string

token pan number

card_expiry_mm
string

token pan expiry month

card_expiry_yy
string

token pan expiry year

cryptogram
string

cryptogram

card_display
string

last 4 digits of original card number