Documentation V3
Ask or search…
K

Validate BIN

Check if a debit / credit card is valid. Use this service before sending a payment request to avoid transaction rejection due to data mismatch.
get
http://api.stage.localpayment.com/api/resources/bin-validation?bin=
Validate BIN

Example: Validate BIN

cURL request
Response
curl --location --request GET 'https://api.stage.localpayment.com/api/resources/bin-validation?bin=492962' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNjUxMDkwODY3LCJqdGkiOiIwYjJiMjUzMDJlYzc0NDE4YjdlYzE4MTgzNGQ2NjY5ZiIsInVzZXJfaWQiOjMwLCJzdXBlcnVzZXIiOnRydWUsImlzX3N0YWZmIjpmYWxzZSwicm9sZXMiOlsiQUxMIl0sImNvdW50cmllcyI6WyJBTEwiXSwiY29tcGFueSI6IjAwMDEiLCJjbGllbnRfY29kZSI6IjAwMDEifQ.NT4hMEoqCK5QzjEJwSmg7Pp9lDCEydQiv9ZwkA1HR1A'
{
"bin": "492962",
"bank": "BARCLAYS BANK PLC",
"card": "VISA",
"type": "CREDIT",
"level": "GOLD",
"country": "URUGUAY",
"countryCode": "UY",
"website": "",
"phone": "",
"valid": "true",
"error": null
}
Notice that the Country Code given in the response is in CountryIsoCode2.
Please, remember that our system works with CountryIsoCode3