Skip to main content
GET
Get Order

Get Order

Returns the current status and full details of an energy or bandwidth order.

Path parameters

number
required
Order ID — the id returned by Buy Energy or Buy Bandwidth.

Response

Returns the full order object including status, type, volume, price_trx, delegate_txid, and timestamps.
string
Fixed fee of this order, charged once per order regardless of volume. It is already included in price_trx. Reflects your own fee if a custom fee, discount or waiver applies to your account.
number | null
ID of the address activation this order paid for, or null when it paid for none.
string | null
What that activation cost, in TRX, on top of price_trx — this is the difference between the order price and the amount that left your balance.
null, not "0". Both fields are null when the order paid for no activation — either the recipient account already existed, or somebody else’s transaction created it. Note the difference from activation_cost_trx on the Buy Energy response, which is the string "0" in that case: comparing against "0" here would never match.
string | null
Why a failed order failed, as a code from the Failure reasons table on Get Order; null for any other status. Treat a code you do not know as internal_error: new codes may be added.
string | null
What went back to your balance, in TRX, as a decimal string: the full price_trx for failed, the price of the undelivered part for partial; null when nothing was refunded.

Order statuses

An order in progress normally becomes final within seconds, at most minutes. Poll this endpoint every 5–10 seconds, or subscribe to the order.updated webhook to get the final state pushed to you. If an order stays in progress for more than 15 minutes, contact support with its ID. A final status does not change, with one exception: a filled order may later move to reclaimed or reclaim_failed when its rental ends. A failed or partial order is never delivered further or charged again. If its purchase response had provider_outcome: "unknown", the refunded energy may still reach the address within minutes, and you are not charged for it — see Buy Energy.

Failure reasons

A failed order always returns its full price to your balance, and refunded_trx shows the amount. fail_reason says what went wrong and whether a retry makes sense:
New codes may be added to this list. Treat a code you do not know as internal_error.

Example

Response