API Test Keys

Fetch Card Reference Number Using Tokenised Card Number

POST
/v1/cards/fingerprints

Click to copy

Use this endpoint to retrieve the card reference number for a specific card using the tokenised card number.

Watch Out!

Using a RuPay card will throw an error as it is not supported. It will not provide network_reference_id for tokenised card numbers. It will be available as part of Create Token response only.

Is this page helpful?

Curl

change language

change language

1
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
2
-X POST https://api.razorpay.com/v1/cards/fingerprints \
3
-H "content-type: application/json" \
4
-d '{
5
"number": "4854980604708430"
6
}'

Success - Visa and MC

Failure

1
{
2
"network": "Visa",
3
"payment_account_reference": "V0010013819231376539033235990",
4
"network_reference_id": null
5
}
Request Parameters
number

*

string

The tokenised card number whose PAR or network reference id should be retrieved.

Response Parameters
network
string

The card network. Possible values:

  • Mastercard
  • RuPay
  • Visa

payment_account_reference
string

The 29-character unique identifier for Mastercard and Visa cards. For RuPay cards, the value is null.

network_reference_id
string

The unique identifier generated for RuPay cards.

Fetch Card Reference Number Using Tokenised Card Number

POST
/v1/cards/fingerprints

Click to copy

Use this endpoint to retrieve the card reference number for a specific card using the tokenised card number.

Watch Out!

Using a RuPay card will throw an error as it is not supported. It will not provide network_reference_id for tokenised card numbers. It will be available as part of Create Token response only.

Is this page helpful?

Request Parameters
number

*

string

The tokenised card number whose PAR or network reference id should be retrieved.

Response Parameters
network
string

The card network. Possible values:

  • Mastercard
  • RuPay
  • Visa

payment_account_reference
string

The 29-character unique identifier for Mastercard and Visa cards. For RuPay cards, the value is null.

network_reference_id
string

The unique identifier generated for RuPay cards.

Curl

change language

change language

1
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
2
-X POST https://api.razorpay.com/v1/cards/fingerprints \
3
-H "content-type: application/json" \
4
-d '{
5
"number": "4854980604708430"
6
}'

Success - Visa and MC

Failure

1
{
2
"network": "Visa",
3
"payment_account_reference": "V0010013819231376539033235990",
4
"network_reference_id": null
5
}