Skip to main content

Method pay

URL: POST - /partner/merchant/deposit/pay

The method allows you to pay for the merchant's services from the Partner's deposit.

Header parameters

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

Request parameters

ParameterTypeDescription
merchantId *stringVIA Merchant ID
externalId *stringUnique Partner Request ID
amount *integerTransfer amount in cents (1/100 part of the base currency unit)
currency *stringCurrency:
«UZS» - Uzbek sum
notestringNotes, remarks, etc.
accounts *stringData object regarding merchant services.
The parameters and their values of the accounts object are determined depending on the merchant's service for which the payment is made.
For example:
A phone number is sent to pay for the mobile operator's service.

Request sample

curl POST '/partner/merchant/deposit/pay' \
--header 'client-id: system' \
--header 'client-secret: system123' \
--data '{
"merchantId": "mrt_qwegFC1lHGaAzJIRphv4LdU10zX",
"externalId": "test_1"
"amount": 10000,
"currency": "UZS",
"note": "",
"accounts": {
"account": "123123"
}
}'

Response parameters

ParameterTypeDescription
transactionIdstringTransaction ID
payedAtintegerPayment date and time in Unix Timestamp format
amountintegerTransfer amount in cents (1/100 part of the base currency unit)

Example response if successful

{
"transactionId": "string",
"payedAt": 0,
"amount": 0
}

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"
}
}
}