Card info request
The card info request lets you receive information on the credit card product from the system’s database. The request requires authorization by the shop’s secret_key and the request body must contain the card’s BIN or PAN.
Card info request
POST https://{api-url}/credit-cards/bins/info
Request
Authorization
The request requires Basic authorization type with the shop’s id and secret_key.
Header parameters
|
Parameter |
Required |
Type |
Description |
|---|---|---|---|
|
|
mandatory |
|
|
Body parameters
|
Parameter |
Required |
Type |
Description |
|---|---|---|---|
|
|
mandatory |
|
|
Example of the request
{
"number": "420000"
}Response
Response parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
|
|
|
|
|
|
Transaction processing code. |
|
|
|
A processing result message. |
|
|
|
|
|
|
|
Data array with the information on the card products found for the specified BIN/PAN. |
The parameters of objects in the data[]
If no cards were found by the specified BIN/PAN, an empty array will be returned.
|
Parameter |
Type |
Description |
|---|---|---|
|
|
|
Unique identifier of the database entry on the card product. |
|
|
|
Card issuer name. |
|
|
|
The country of the card issuer. |
|
|
|
Card brand name. For example, |
|
|
|
A subbrand name. |
|
|
|
The currency of the card. The parameter is returned only for the cards of the selected banks. |
|
|
|
The object with the card product parameters. |
product{} parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
|
|
The product code for the card. |
|
|
|
Card product name, used for loyalty programs, for example, |
|
|
|
Card product category: debit or credit. |
Example of the response
{
"response": {
"code": "S.0000",
"message": "The request was successful.",
"friendly_message": "The request was successful.",
"data": [
{
"id": 796,
"issuer_name": "VISA Demo Bank",
"issuer_country": "US",
"product": {
"code": "F",
"name": "Visa Classic"
}
}
]
}
}