BIN and bank lookup
Two lookups that need no image: resolve a card's BIN, or find a bank.
Look up a BIN#
The BIN is the first 6 to 8 digits of a card number. bin.lookup returns the network, type, level and funding, the issuer, the country and currency, and the issuer's record in the bank directory.
curl https://verisec.dev/v2/bin/424242 \
-H "Authorization: Bearer $VERISEC_API_KEY"{
"network": "Visa",
"type": "Debit",
"level": "Classic",
"funding": "debit",
"issuer": "Aeron Fintech",
"country": "RW",
"currency": "RWF",
"is_commercial": false,
"is_prepaid": false,
"url": "https://aeron-fintech.example",
"source": "local+online",
"bin": "424242",
"category": "consumer",
"is_reloadable": true,
"country_name": "Rwanda",
"country_code3": "RWA",
"issuer_country": "RW",
"flag": "๐ท๐ผ",
"currency_name": "Rwanda Franc",
"flag_url": "/v2/flags/rw.svg",
"bank": {
"read": {
"name": "Aeron Fintech",
"country": "RW"
},
"resolved": {
"profile_id": "bank_1d4e94dde9d17fc07f",
"name": "Aeron Fintech",
"country": "Rwanda",
"country_code": "RW",
"city": "Kigali",
"address": "Aeron House, 14 Innovation Way, Kigali",
"status": "active",
"logo_url": "/v2/banks/bank_1d4e94dde9d17fc07f/logo",
"flag_url": "/v2/flags/rw.svg"
},
"match_confidence": 1,
"name_match": 1,
"alternatives": []
}
}Fewer than 6 digits answer 400 with the code bin_too_short.
Find a bank#
banks.lookup finds a bank by BIC, or by name (best with the country). Trust bank when verified is true; otherwise look at alternatives. Send name or bic; sending neither answers 400 with missing_query.
curl "https://verisec.dev/v2/banks?name=Harbor+Point+Bank&country=US" \
-H "Authorization: Bearer $VERISEC_API_KEY"Both endpoints#
| Endpoint | What it does |
|---|---|
GET/v2/banks | Look up a bank |
GET/v2/bin/{digits} | Look up a BIN |