PayAny Energy
My Wallets
API reference
OverviewAuthenticationPrice and termsOrdersOrder statusAccountAddresses and quick rentWebhooksErrorsExamples

Errors

Errors answer the usual envelope with a meaningful HTTP status:

JSON
{"code": 45009, "message": "insufficient balance", "data": null}

Branch on code, not on message (the wording may change). Some errors carry details in data (45014: {price_trx}; batch 45009: {needed, available}).

Request and order errors#

codeHTTPmeaning
42200422invalid request (the field is named in message)
45001400ordering is temporarily paused
45003400invalid TRON address
45004400energy below the allowed range
45005400energy above the allowed range
45006400term unavailable right now
45009400insufficient balance
45010409external_id reused with a different request
45012400that address belongs to the platform
45014409price above your max_price_trx (data.price_trx)
45017400USDT charging unavailable (no rate)
45216400test mode not supported on this endpoint
40420404order not found
46008404saved address not found
46010400Idempotency-Key missing
46011409the request with that Idempotency-Key is still in progress

Authentication errors#

codeHTTPmeaning
45201401credentials missing
45202401unknown access id or wrong secret
45203401signature mismatch (or malformed nonce)
45204401X-Timestamp outside ±300 s
45205401X-Nonce already used
45210401this key uses the other authentication mode
45206403your IP is not on the key's allow-list
45207403the key lacks the permission (Read / Order)
45208403key disabled, suspended or expired
46003403account frozen — contact support
45209429rate limit — slow down

POST /v1/auth/echo explains every authentication failure — see Authentication.

Server errors#

codeHTTPmeaning
50010500delegation temporarily unavailable — retry later with the same external_id
50000500unexpected error — retry later with the same external_id

Key management (website)#

These come from Account → API keys, not from /v1:

codemeaning
45211key limit reached (20 live keys)
45212callback_url must be a public https:// URL
45213API key not found
45218allowed_ips entries must be IP addresses or CIDR ranges
46004enable two-factor authentication first
40104 / 40105 / 40106authenticator code missing / wrong / already used

Retrying safely#

  • 4xx (except 429): fix the request — retrying it unchanged gives the same answer.
  • 429: wait for the next minute; watch X-RateLimit-Remaining.
  • 5xx or a timeout: retry POST /v1/orders with the same external_id — you are never charged twice.
PreviousWebhooksNextExamples
PayAny Energy

TRON energy for USDT transfers — a PayAny product.

Scan to download the app
Product
  • Buy Energy
  • My Wallets
  • Pricing
  • Find an Order
  • Telegram Bot ↗
Developers
  • API Docs
  • API Keys
Company
  • FAQ
  • Terms of Service
  • Privacy Policy
  • Delete your account
  • PayAny.com ↗
© 2026 PayAny. All rights reserved.Energy is delegated on the TRON network; delivery times depend on network confirmation.