Method card-info
URL: POST - /partner/card/info
The method allows you to get information by the client's bank card number.
Header parameters
| Parameter | Type | Description |
|---|---|---|
| client-id * | authorization | Unique Partner ID |
| client-secret * | authorization | Unique authentication key for VIA API |
Request parameters
| Parameter | Type | Description |
|---|---|---|
| pan * | string | Client's bank card number |
Request sample
curl POST '/partner/card/info' \
--header 'client-id: system' \
--header 'client-secret: system123' \
--data '{
"pan": "8600123412341234"
}'
Response parameters
| Parameter | Type | Description |
|---|---|---|
| data | object | Response data object |
| pan | string | Client's bank card number |
| cardHolder | string | Full name of the bank card owner |
| bankName | string | Name of the bank |
| bankCode | string | Bank code |
| processing | string | Processing type «UZCARD» «HUMO» |
Example response if successful
{
"data": {
"pan": "8600123412341234",
"cardHolder": "TEST TEST",
"bankName": "AloqaBank",
"bankCode": "12345",
"processing": "UZCARD"
}
}
Example response in case of error
{
"status": {
"code": "1234",
"message": "Error while executing the request"
},
"error": {
"path": "URL Path",
"message": {
"uz": "Error message in Uzbek",
"ru": "Error message in Russian",
"en": "Error message in English"
}
}
}