GET

Get an order

/api/v1/energy/orders/:order_id

Fetch a single order by id. Poll this endpoint to learn the outcome of an asynchronous order.

Path parameters

ParameterTypeDescription
order_idstringThe order id returned when the order was created.

Response

{
  "data": {
    "order_id": "ord_9c2b7f0a",
    "status": "COMPLETED",
    "product": "TRON_ENERGY",
    "order_type": "RENTAL",
    "amount": 64400,
    "duration_minutes": 60,
    "target_address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
    "customer_price": "2.093",
    "order_total": "2.093",
    "actual_consumed": "2.093",
    "currency": "TRX",
    "created_at": "2026-09-22T12:00:00.000Z",
    "completed_at": "2026-09-22T12:00:05.000Z",
    "failure_reason": null,
    "tx_info": {
      "delegate_tx_hash": "…",
      "reclaim_tx_hash": "…",
      "delegate_time": "…",
      "reclaim_time": "…",
      "resource_address": "T…"
    }
  },
  "request_id": "…"
}

status is one of PENDING, COMPLETED, FAILED, RECONCILIATION_REQUIRED.

FieldTypeDescription
order_totalstringThe total agreed at order time, in TRX (decimal string, not SUN). For a rental order this equals customer_price.
actual_consumedstringThe amount actually charged, in TRX. For a rental order this equals customer_price.
customer_pricestringThe order price, in TRX (decimal string, not SUN; 1 TRX = 10^6 SUN).
currencystringAlways TRX.
tx_infoobject | nullPublic on-chain delegation/reclaim detail. May be null while the order is in-flight.

The tx_info object contains only public, on-chain facts:

FieldTypeDescription
delegate_tx_hashstring | nullDelegation transaction hash.
reclaim_tx_hashstring | nullReclaim transaction hash.
delegate_timestring | nullDelegation time (as reported by the chain).
reclaim_timestring | nullReclaim time (as reported by the chain).
resource_addressstring | nullThe address that actually delegated the resource.

Errors

  • ORDER_NOT_FOUND — the order does not exist or is not yours.