Method transaction-info
URL: GET - /partner/transaction
The method allows you to get information about a transaction by the transaction ID or by the partner request ID.
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 |
|---|---|---|
| transactionId | string | Transaction ID |
| externalId | string | Unique Partner Request ID |
Request sample
curl GET '/partner/transaction?transactionId=trx_2TEt8TonK6VhrewD78Wv0QXuZEQ' \
--header 'client-id: system' \
--header 'client-secret: system123'
Response parameters
| Parameter | Type | Description |
|---|---|---|
| data | object | Response data object |
| transactionId | object | Transaction ID |
| note | string | Notes, remarks, etc. |
| externalId | string | Unique Partner Request ID |
| processPayerTransactionId | string | Sender's processing system transaction identifier |
| processReceiverTransactionId | string | Receiver's processing system transaction ID |
| merchantId | string | VIA Merchant ID |
| status | string | Transaction status: «SUCCESS» - Successful «ERROR» - Error «REJECT» - Refused «PENDING» - Pending «NEW» - New «DRAFT» - Draft |
| amount | integer | Transfer amount in cents (1/100 part of the base currency unit) |
| fee | integer | Commission amount in cents (1/100 part of the base currency unit) |
| feePercent | long | Commission amount as a percentage |
| currency | string | Currency: «UZS» - Uzbek sum |
| errorCode | string | Error code |
| errorMessage | string | Description of the error |
| refundedAmount | integer | Refund amount in cents (1/100 part of the base currency unit) |
| modifiedAt | integer | Transaction update date and time in Unix Timestamp format |
| createdAt | integer | Date and time the transaction was created in Unix Timestamp format |
| payedAt | integer | Payment date and time in Unix Timestamp format |
| process | string | Processing type «UZCARD» «HUMO» |
| epos | object | EPOS system data object |
| epos.merchantId | string | Merchant ID |
| epos.terminalId | string | Terminal 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"
}
}
}