Skip to main content

Method deposit-to-token

URL: POST - /partner/transfer/deposit-to-token

The method allows you to top up the client's bank card from the partner's deposit with cash using the token and receive the result of executing the request in JSON format.

The partner's deposit must have enough funds to top up the client's bank card before executing the request.

Header parameters

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

Request parameters

ParameterTypeDescription
externalId *stringUnique Partner Request ID
amount *integerTransfer amount in cents (1/100 part of the base currency unit)
sender *objectSender's Data Object
sender.firstName *stringSender's first name
sender.lastName *stringSender's last name
sender.middleName *stringSender's middle name
receiverToken *stringBank card token in the system
currency *stringCurrency:
«UZS» - Uzbek sum
note *stringNotes, remarks, etc.

Request sample

curl POST '/partner/transfer/deposit-to-token' \
--header 'client-id: system' \
--header 'client-secret: system123' \
--data '{
"externalId": "string",
"amount": 1000,
"sender": {
"firstName": "John",
"lastName": "Doe",
"middleName": "Smith"
},
"receiverToken": "VLH8VNWKE3SBBBZEKA86T5PF72ZNVOIC",
"currency": "UZS",
"note": "P2P for card"
}'

Response parameters

ParameterTypeDescription
dataobjectResponse data object
transactionIdobjectTransaction ID
notestringNotes, remarks, etc.
externalIdstringUnique Partner Request ID
processPayerTransactionIdstringSender's processing system transaction identifier
processReceiverTransactionIdstringReceiver's processing system transaction ID
merchantIdstringVIA Merchant ID
statusstringTransaction status:
«SUCCESS» - Successful
«ERROR» - Error
«REJECT» - Refused
«PENDING» - Pending
«NEW» - New
«DRAFT» - Draft
amountintegerTransfer amount in cents (1/100 part of the base currency unit)
feeintegerCommission amount in cents (1/100 part of the base currency unit)
feePercentlongCommission amount as a percentage
currencystringCurrency:
«UZS» - Uzbek sum
errorCodestringError code
errorMessagestringDescription ошибки
refundedAmountintegerRefund amount in cents (1/100 part of the base currency unit)
modifiedAtintegerTransaction update date and time in Unix Timestamp format
createdAtintegerDate and time the transaction was created in Unix Timestamp format
payedAtintegerPayment date and time in Unix Timestamp format
processstringProcessing type
«UZCARD»
«HUMO»
eposobjectEPOS system data object
epos.merchantIdstringMerchant ID
epos.terminalIdstringTerminal ID

Example response if successful

{
"data": {
"transactionId": "trx_2TEt8TonK6VhrewD78Wv0QXuZEQ",
"note": «sample request»,
"externalId": "trx_2TEt8TonK6VhrewD78Wv0QXuZEQ",
"processPayerTransactionId": "bw_2TEt8UFOloG4VZevOGT4OQThhuF",
"processReceiverTransactionId": "trx_2isdflkUHuh98237KJhw87",
"merchantId": "terrx_2TEt8TonK6VhrewD78Wv0QXu",
"status": "SUCCESS",
"amount": 100000,
"fee": 0,
"feePercent": 0,
"currency": "UZS",
"errorCode": "",
"errorMessage": "",
"refundedAmount": 0,
"modifiedAt": 0,
"createdAt": 0,
"payedAt": 0,
"process": "UZCARD",
"epos": {
"merchantId": "trx_2TEt8TonK6VhrewD78Wv0QXuZEQ",
"terminalId": "trx_2TEt8TonK6VhrewD78Wv0QXuZEQ"
}
}
}

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