Card network from the first 6–8 digits (BIN/IIN)

Identifies the card network (Visa, Mastercard, RuPay…) from the first 6–8 digits, its usual card-number lengths, and whether it is an Indian domestic network.

Request

GEThttps://payment-details-validator.p.apihiver.com/v1/card-bin/457173
*
String. First 6–8 digits of the card number.
Language
Client
1curl --request GET \
2  --url https://payment-details-validator.p.apihiver.com/v1/card-bin/457173 \
3  --header 'Accept: application/json' \
4  --header 'X-API-Key: YOUR_API_KEY'

Card network from the first 6–8 digits (BIN/IIN): IFSC, GSTIN & UPI Validation API (India) reference

Identifies the card network (Visa, Mastercard, RuPay…) from the first 6–8 digits, its usual card-number lengths, and whether it is an Indian domestic network. This endpoint is part of the IFSC, GSTIN & UPI Validation API (India): Validate Indian payment details — IFSC (with bank and branch), GSTIN, UPI ID format — plus IBAN and card BIN checks.

Example response (200, application/json)

Success.

1{
2  "bin": "457173",
3  "network": "visa",
4  "card_number_lengths": [
5    13,
6    16,
7    19
8  ],
9  "domestic_network_india": false
10}

Errors

  • 400 — A required parameter is missing or a value has the wrong format.
    1{
    2  "error": {
    3    "code": "INVALID_INPUT",
    4    "message": "Send only the first 6–8 digits of the card (never the full number)."
    5  }
    6}

Gateway errors (missing key, no subscription, rate limits) are listed in Error codes.