Skip to content

Transaction Perform

Request parameters

NameTypeDescription
transaction_idUUID4Transaction ID
accountdictA dictionary containing fields that are set for the merchant, e.g., order_id
amountamountPayment amount
amount_tiyinintPayment amount in cent (tiyin)
currencyint860 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 – Success
3 – Maintenance is in process
5 – Invalid amount
303 – 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"
   }
}