Method card-register
URL: POST - /card/api/v1/card/register
The method allows you to register a customer's bank card by number and expiration date of the card.
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 |
| expMonth * | string | Card expiration month |
| expYear * | string | Card expiration year |
Request sample
curl POST '/card/api/v1/card/register' \
--header 'client-id: system' \
--header 'client-secret: system123' \
--data '{
"pan": "8600123412341234",
"expMonth": "08",
"expYear": "26"
}'
Response parameters
| Parameter | Type | Description |
|---|---|---|
| verifyId | string | Identification number for confirmation |
| phoneMask | string | Masked phone number |
Example response if successful
{
"verifyId": "83735515f8ea493fa7954dd6070767de",
"phoneMask": "99891*****00"
}
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"
}
}
}