Your account
Create an order paid from the balance
/api/me/ordersAPI key· orderRents energy and pays from your FeeBolt balance at once: no transfer, no payment window. Idempotent.
Same body as Create an order, with your loyalty discount. The price is debited from your balance in one ledger entry and the order starts paid; delivery is already under way when this answers. If the balance is short you get 402 insufficient_balance and nothing is charged.
If no provider can deliver, the full amount goes back to your balance (a refund entry in the ledger), automatically.
Idempotency-Key is required. Make one per order you mean to place (a payout id works). Retrying with the same key returns the same order with 200 and Idempotent-Replayed: true, never a second charge. The same key with a different address, plan or currency is refused with 409 idempotency_conflict.
Headers
Idempotency-KeystringRequired- 8 to 64 letters, digits,
-or_, unique per order you mean to make. A retry with the same key returns the same order (200,Idempotent-Replayed: true) and never pays twice.clientKeyin the body works too.
Body parameters
addressstringRequired- The wallet that sends the USDT and receives the energy. Activated, not a contract.
packageIdstringOptional- A plan id, or
transfers+durationas in the quote. One of the two is required. transfersintegerOptional- Instead of
packageId: 1 to 2,000. Send withduration. duration"1h" | "1d" | "3d"Optional- How long the energy stays.
3dneeds 3 transfers or more. recipient"holder" | "empty"Optional- Whether the USDT receiver already holds USDT:
holdersizes the energy at 64,285 per transfer,emptyat 130,285. Default"holder". recipientAddressstringOptional- The USDT receiver. We read the chain to size the energy; overrides
recipient. currency"TRX" | "USDT"Optional- What you pay in. Default
"TRX". activatebooleanOptional- Add activation for an address that isn't activated yet (it is activated after payment, before delivery).
Other answers
200 OKA replay: the order this Idempotency-Key already made (headerIdempotent-Replayed: true).
Errors
| HTTP | error | When |
|---|---|---|
| 400 | idempotency_key_required | An order paid from the balance needs an Idempotency-Key header. |
| 400 | bad_idempotency_key | Idempotency-Key isn't 8 to 64 letters, digits, - or _. |
| 409 | idempotency_conflict | This Idempotency-Key was used for a different order, or the header and clientKey differ. |
| 402 | insufficient_balance | The balance doesn't cover the order. Nothing was charged. |
| 400 | bad_request | The body isn't a JSON object, or is over 4 KB. |
| 400 | bad_address | address is missing, not a TRON address, or fails its checksum. |
| 400 | bad_package | Unknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d. |
| 400 | bad_currency | currency is neither TRX nor USDT. |
| 400 | bad_recipient | recipient isn't holder or empty, or recipientAddress isn't a TRON address. |
| 400 | not_activated | The address has never received TRX. Activate it first, or add activate: true. |
| 400 | contract_address | The address is a smart contract; energy goes to wallets only. |
| 403 | screening | The address is on Tether's USDT blacklist or the OFAC sanctions list. |
| 422 | no_source | No energy source can fill this plan right now. Try fewer transfers or later. |
| 503 | busy | Too many orders wait for payment right now. Retry in a minute. |
| 503 | payments_off | Ordering is paused. Quotes and checks still work. |
| 401 | missing_api_key | This endpoint needs an API key: Authorization: Bearer fb_live_…. |
| 401 | invalid_api_key | The key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored. |
| 401 | api_key_revoked | The key was revoked in Settings › API keys. |
| 403 | account_closed | The key's account is closed. |
| 403 | insufficient_scope | The key lacks the scope this endpoint needs (read or order). |
| 429 | rate_limited | Too many calls (per IP, or per key with a key). Wait for Retry-After seconds. |
| 502 / 503 | upstream | The TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds. |
Every error is {"error": "<code>", "message": "<text>"}. All error codes.
Rate limits
- With an API key: 30 at once, then 1 every 2 s, per key.