API

.mdOpenAPI

Guide

Errors

Every error is JSON with a stable error code to branch on and a message written to be shown to people as is.

Every error is JSON with a stable error code to branch on and a message you can show as is. 4xx means the request can be fixed; 5xx means retry later (with the same idempotency key for orders).

400 Bad Request
{
  "error": "not_activated",
  "message": "This address isn't activated yet. Add activation to the order, or send it any amount of TRX first."
}
HTTPerrorWhen
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.
400bad_client_keyclientKey isn't 8 to 64 letters, digits, - or _.
400bad_kindkind is neither energy nor activation.
400too_many_addressesMore than 20 addresses in one activation order.
400bad_limitlimit isn't a whole number in range.
400bad_txidtx isn't 64 hex characters.
400bad_senderThe sender isn't a valid TRON address, or can't send this.
400bad_amountThe amount is missing, too small, or more than the sender holds.
400bad_bundlebundle isn't 1, 3 or 5.
400same_addressSender and recipient are the same.
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.
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 _.
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.
402insufficient_balanceThe balance doesn't cover the order. Nothing was charged.
403insufficient_scopeThe key lacks the scope this endpoint needs (read or order).
403account_closedThe key's account is closed.
403screeningThe address is on Tether's USDT blacklist or the OFAC sanctions list.
403sanctionedThe sender or recipient is on a sanctions or blacklist.
403blockedThis sender can't use the send tool right now (too many unpaid sends).
404not_foundNo order (or transaction) with that id.
409idempotency_conflictThis Idempotency-Key was used for a different order, or the header and clientKey differ.
409already_activatedAn address in an activation order is already activated. Remove it and order again.
409price_changedThe send fee rose since your quote (expectedFee). Quote again.
409too_soonThe sender already has a send open. Finish or wait for it.
422no_sourceNo energy source can fill this plan right now. Try fewer transfers or later.
429rate_limitedToo many calls (per IP, or per key with a key). Wait for Retry-After seconds.
500internalOur fault. It's recorded and alerted; retry (with the same idempotency key).
502 / 503upstreamThe TRON node didn't answer (503 when it rate-limited us). Retry in a few seconds.
503busyToo many orders wait for payment right now. Retry in a minute.
503activation_unavailableActivation can't be added right now. Send the address any amount of TRX first.
503activation_busyActivation is paused for now (the daily limit is reached). Try later, or send the address any amount of TRX.
503payments_offOrdering is paused. Quotes and checks still work.
503send_offThe send tool is paused.