GET Coupon
/api/v1/coupon/<COUPON_ID>
This call responds with a coupon data for a specified COUPON_ID
provided within a path. If coupon is not found, 404 is returned. For a spent coupon
Response contains the following data:
code
: Success or failed.coupon
: a coupon structure with the following data:id
: coupon IDrtrx_limit
: a upper limit of the transaction fee that can be covered with this couponvalid_to
: coupon expiration timeaddress
: when coupon is spent, this field is returned and contains address of the spendertx_id
: when coupon is spent, this field is returned and contains transaction hash that coupon was applied forrtrx_spent
: when coupon is spent, this field is returned and contains exact amount of TFN (former RTRX) that was charged, remaining amount is credited back to an account of the entity that created a coupon.
balance_on_coupons_rtrx
: total balance that is currently locked on all issued and not yet spent coupons.balance_rtrx
andbalance_rusdt
: current Transatron account balances in TFN (former RTRX) and TFU (former RUSDT).
Example of response:
{
"code": "SUCCESS",
"coupon":
{
"valid_to": 1756462987130,
"id": "9cf04de1-1f2a-47b5-9e5c-04b51b0f67a2",
"rtrx_limit": 7925001
},
"balance_on_coupons_rtrx": 7925001,
"balance_rtrx": 120548547,
"balance_rusdt": 69399295
}