Appearance
Transaction Perform
Request parameters
| Name | Type | Description |
|---|---|---|
| transaction_id | UUID4 | Transaction ID |
| account | dict | A dictionary containing fields that are set for the merchant, e.g., order_id |
| amount | amount | Payment amount |
| amount_tiyin | int | Payment amount in cent (tiyin) |
| currency | int | 860 or 840 (UZS or USD) |
Request Example
json
{
"jsonrpc": "2.0",
"id": 1234567,
"method": "transaction.perform",
"params": {
"transaction_id": "9bd1a92b-5cce-47c8-a2df-99a20836ab9e",
"account": {
"order_id": 12
},
"amount":500,
"amount_tiyin": 50000,
"currency": 860
}
}Response example
json
{
"jsonrpc": "2.0",
"id": 1234567,
"result": {
"status": "0",
"statusText": "OK"
}
}Statuses
0 – Success3 – Maintenance is in process5 – Invalid amount303 – Order not found
+1 – Custom error message from merchant service provider. Merchants can send their custom message like {"statusText": "monthly_limit_exceeded"}
json
{
"jsonrpc": "2.0",
"id": 1234567,
"result": {
"status": "+1",
"statusText": "monthly_limit_exceeded"
}
}