API

.mdOpenAPI

Your account

Create an order paid from the balance

POST/api/me/ordersAPI key· order

Rents 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. clientKey in 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 + duration as in the quote. One of the two is required.
transfersintegerOptional
Instead of packageId: 1 to 2,000. Send with duration.
duration"1h" | "1d" | "3d"Optional
How long the energy stays. 3d needs 3 transfers or more.
recipient"holder" | "empty"Optional
Whether the USDT receiver already holds USDT: holder sizes the energy at 64,285 per transfer, empty at 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 OK A replay: the order this Idempotency-Key already made (header Idempotent-Replayed: true).

Errors

HTTPerrorWhen
400idempotency_key_requiredAn order paid from the balance needs an Idempotency-Key header.
400bad_idempotency_keyIdempotency-Key isn't 8 to 64 letters, digits, - or _.
409idempotency_conflictThis Idempotency-Key was used for a different order, or the header and clientKey differ.
402insufficient_balanceThe balance doesn't cover the order. Nothing was charged.
400bad_requestThe body isn't a JSON object, or is over 4 KB.
400bad_addressaddress is missing, not a TRON address, or fails its checksum.
400bad_packageUnknown package, or a plan outside 1 to 2,000 transfers (3 or more for 3d), or a duration other than 1h, 1d, 3d.
400bad_currencycurrency is neither TRX nor USDT.
400bad_recipientrecipient isn't holder or empty, or recipientAddress isn't a TRON address.
400not_activatedThe address has never received TRX. Activate it first, or add activate: true.
400contract_addressThe address is a smart contract; energy goes to wallets only.
403screeningThe address is on Tether's USDT blacklist or the OFAC sanctions list.
422no_sourceNo energy source can fill this plan right now. Try fewer transfers or later.
503busyToo many orders wait for payment right now. Retry in a minute.
503payments_offOrdering is paused. Quotes and checks still work.
401missing_api_keyThis endpoint needs an API key: Authorization: Bearer fb_live_….
401invalid_api_keyThe key is malformed or unknown. A bad key is refused on every endpoint that takes keys, never ignored.
401api_key_revokedThe key was revoked in Settings › API keys.
403account_closedThe key's account is closed.
403insufficient_scopeThe key lacks the scope this endpoint needs (read or order).
429rate_limitedToo many calls (per IP, or per key with a key). Wait for Retry-After seconds.
502 / 503upstreamThe 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.