Skip to main content
POST
/
utilities
/
cardbin
Get Card BIN Details
curl --request POST \
  --url https://sandbox.cashfree.com/pg/utilities/cardbin \
  --header 'Content-Type: application/json' \
  --header 'x-api-version: <x-api-version>' \
  --header 'x-client-id: <api-key>' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "card_number": "xxxx...xxx"
}'
{
  "bank_name": "canara bank",
  "country_code": "in",
  "scheme": "visa",
  "sub_type": "retail",
  "type": "credit"
}

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 key in the merchant dashboard.

Headers

x-api-version
string
default:2025-01-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>

An idempotency key is a unique identifier you include with your API call. If the request fails or times out, you can safely retry it using the same key to avoid duplicate actions.

Body

application/json

Request payload to get card bin details.

card_number
string
required

Card number, minimum first 8 digits are required.

Example:

"xxxx...xxx"

Response

Response payload for Card BIN Details.

bank_name
string

Issuing bank name of the card. For example hdfc bank, icici bank, axis bank.

country_code
string

Issuing country of the card. For example in, us.

scheme
string

Card scheme/network of the card. For example visa, mastercard, rupay, amex, diners.

sub_type
string

Sub-type of card. Available options are retail, premium and corporate.

type
string

Type of card. Available options are credit, debit and prepaid.