Skip to main content

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

ParameterTypeDescription
client-id *authorizationUnique Partner ID
client-secret *authorizationUnique authentication key for VIA API

Request parameters

ParameterTypeDescription
pan *stringClient's bank card number
expMonth *stringCard expiration month
expYear *stringCard 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

ParameterTypeDescription
verifyIdstringIdentification number for confirmation
phoneMaskstringMasked 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"
}
}
}