Status

It is not necessary to use this request if you correctly process callback requests from the cryptobank to update transaction statuses, but it allows you to check the current status of any transaction in the cryptobank at any time

Response sample

GET
https://relictum.finance/api/v1/finance/status?id=<id>
Content-Type: application/json

// example

https://relictum.finance/api/v1/finance/status?id=374
Ответ:
{
   "success":true,
   "transaction":{
      "id":374,
      "sum":200,
      "sum_currency":201,
      "status":0,
      "gate":{
         "title":"USDT Tron",
         "alias":"usdt-tron",
         "min_sum":10,
         "max_sum":100000,
         "rate":1,
         "gateCurrency":{
            "code":"USDT-TRX",
            "title":"Tether Tron TRC-20",
            "type":"crypto"
         },
         "data":{
            "send_paysys_identificator":"USDTTRC",
            "dec_digits":4,
            "icon":"https://dev.relictum.finance/img/gate/usdttrc20.svg",
            "networks":[
               "TRC20"
            ],
            "percent_fee":0,
            "min_fee":1
         }
      },
      "user":{
         "username":"test@relictum.finance",
         "email":"test@relictum.finance"
      },
      "created_at":"2021-08-16 16:30:48",
      "updated_at":"2021-08-16 16:30:48",
      "transaction_address":"TNhVvX9Tjmmu19MaL77bEYs7TxqPkczVM4",
      "data":{
         "relictum":"relictum_recipient_wallet_address",
         "course":1,
         "percent_fee":0,
         "min_fee":1,
         "fee":1
      }
   }
}
  • <id> — Order ID in the cryptobank.

Possible values of the status field:

  • 0 – New transaction

  • 1 – Transaction paid success

  • 2 – Transaction canceled

  • 3 – Transaction is pending moderation

  • 5 – An error occurred while processing a transaction.

Last updated