Skip to main content

Payment Verification - /api/v20/check

The check method is used for preliminary payment verification, user identifier validation, and, if necessary, retrieving additional data from the provider.

Request Structure

ParameterValue
MethodPOST
URI<url>/api/v20/check
URI Parametersnone
Body Parametersrequest parameters
Content-Typeapplication/json

Request Variants

Basic Number Check

ParameterDescriptionRequired
serviceIdService code in the processing systemyes
accountUser identifier: phone, email, account number, etc.yes
agentTransactionIdUnique operation number on the Agent's sideyes
agentTransactionDateOperation date on the Agent's sideyes
amountToAmount to be creditedno
amountFromAmount received from the userno
{
"serviceId": "A1011",
"account": "7770017711",
"agentTransactionId": 1233355,
"agentTransactionDate": "2015-02-17T16:48:37",
"amountTo": 200.00,
"amountFrom": 200.00
}

Request with User Identity Data

ParameterDescriptionRequired
serviceIdService code in the processing systemyes
accountUser identifieryes
agentTransactionIdUnique operation number on the Agent's sideyes
agentTransactionDateOperation date on the Agent's sideyes
amountToAmount to be creditedno
amountFromAmount received from the userno
identityCardPassport or ID numberno
fullNamePayer's full nameno
info

For certain countries or service types, legislation may require transmitting payer identity data.

{
"serviceId": "A1011",
"account": "7770017711",
"agentTransactionId": 1233355,
"agentTransactionDate": "2015-02-17T16:48:37",
"amountTo": 200.00,
"amountFrom": 200.00,
"identityCard": "123456789",
"fullName": "John Doe"
}

Request with Additional Fields

ParameterDescriptionRequired
serviceIdService code in the processing systemyes
accountUser identifieryes
agentTransactionIdUnique operation number on the Agent's sideyes
agentTransactionDateOperation date on the Agent's sideyes
amountToAmount to be creditedno
amountFromAmount received from the userno
extrasAdditional parameters containeryes
account1Additional field account1no
account2Additional field account2no
info

Additional fields in extras are used for services that require supplementary data alongside the main identifier, such as email, order number, or payment type.

{
"serviceId": "A1012",
"account": "0",
"agentTransactionId": 1233355,
"agentTransactionDate": "2015-02-17T16:48:37",
"amountTo": 200.00,
"amountFrom": 200.00,
"extras": {
"account1": "test@gmail.com",
"account2": "121231"
}
}

Response Variants

Basic Response

ParameterDescriptionRequired
resultResult codeyes
resultMessageText description of the resultyes
transactionIdOperation identifier in the processing systemyes
agentTransactionIdAgent's operation identifieryes
{
"result": 0,
"resultMessage": "ok",
"transactionId": 100000781233355,
"agentTransactionId": 1233355
}

Response for International Providers

ParameterDescriptionRequired
resultResult codeyes
resultMessageText description of the resultyes
transactionIdOperation identifier in the processing systemyes
agentTransactionIdAgent's operation identifieryes
currencyRateConversion rate informationno
rateConversion rateno
finalAmountCredit amount in provider's currencyno
currencyProvider's currencyno
{
"result": 0,
"resultMessage": "Success",
"transactionId": 1402546,
"agentTransactionId": 12,
"currencyRate": "Conversion rate KZT/USD 0.0021",
"rate": 0.0020833333,
"finalAmount": 1.75,
"currency": "USD"
}

Response with Display Data

ParameterDescriptionRequired
resultResult codeyes
resultMessageText description of the resultyes
transactionIdOperation identifier in the processing systemyes
agentTransactionIdAgent's operation identifieryes
displaysFields to display to the userno
info

The displays object may contain fields that need to be shown to the user or used in the next payment step.

{
"result": 0,
"resultMessage": "ok",
"transactionId": 270,
"agentTransactionId": 205,
"displays": {
"fio": "Test fio",
"address": "Embankment 134, apt 5",
"info": "Amount to pay: 20000.00"
}
}

Response for Selection Scheme

ParameterDescriptionRequired
resultResult codeyes
resultMessageText description of the resultyes
transactionIdOperation identifier in the processing systemyes
agentTransactionIdAgent's operation identifieryes
contractsList of available contracts/accounts/orders to choose fromyes
contractIdContract/account/order identifieryes
nameName or full nameno
contractNumberContract numberno
contractSumAmount to payno
contractDateIssue dateno
info

Typical scenario - returning multiple invoices, orders, or contracts from which the user must select one.

{
"result": 0,
"resultMessage": "ok",
"transactionId": 100000781233355,
"agentTransactionId": 1233355,
"contracts": [
{
"name": "John Smith",
"contractId": "000000587",
"contractNumber": "1/00-A",
"contractSum": "1000.00",
"contractDate": "20200215000000"
},
{
"name": "John Smith",
"contractId": "000000588",
"contractNumber": "2/00-A",
"contractSum": "2000.00",
"contractDate": "20200216000000"
}
]
}

Response for Complex Scheme

ParameterDescriptionRequired
resultResult codeyes
resultMessageText description of the resultyes
transactionIdOperation identifier in the processing systemyes
agentTransactionIdAgent's operation identifieryes
invoiceInvoice containeryes
invoicesList of invoicesyes
invoiceIdInvoice identifierno
formedDateFormation dateno
expireDatePayment deadlineno
clientNamePayer's full nameno
clientAddressPayer's addressno
servicesList of services within the invoiceyes
subServiceIdService identifier within the invoiceyes
subServiceNameService name within the invoiceyes
dataService attribute setno
paySumAmount to payno
tariffTariffno
minSum / maxSumMinimum and maximum allowed amountno
debtInfoDebt informationno
isMeterMetered service flagno
prevCount / lastCountMeter readingsno
siUnit of measurementno
commentService commentno
info

The composition of invoice depends on the provider's response. Some invoice fields may be absent.

{
"result": 0,
"resultMessage": "ok",
"transactionId": 284,
"agentTransactionId": 205,
"invoice": {
"invoices": [
{
"invoiceId": "2020020003535444",
"formedDate": "20200201000000",
"expireDate": "20200229000000",
"clientName": "John Doe",
"clientAddress": "District 2, building 42, apt. 4",
"services": [
{
"subServiceId": "36",
"subServiceName": "Electricity",
"data": {
"paySum": 359.8,
"tariff": 0.0,
"minSum": 0.0,
"maxSum": 0.0,
"debtInfo": "0.00",
"isMeter": true,
"prevCount": "4870.00",
"lastCount": "0.00",
"si": "kWh",
"comment": ""
}
}
]
}
]
}
}