Webhooks
Your account has one webhook URL, and every event goes to it. Set it in Dashboard → API, or with Configure Webhook.Events
Thirteen events exist today.Since November 3, 2026,
order.updated covers every order of the account; before that it was sent only for orders created with an API key. Tell the channels apart by its source field. Bandwidth rentals send no events.Envelope
Every delivery has the same three top-level keys.timestamp is the moment we built the event, ISO-8601 in UTC.
Response
order.updated
processing, filled, partial, failed, reclaimed or reclaim_failed. This field is the source of truth — see the warning below.Where the order was placed:
api, agent (an app connected over MCP), web (the website), bot (the Telegram bot), autorefill (an Auto Refill rule), faucet (free bandwidth) or broadcast (Energy Broadcast).Same as
volume. Present so that expected and delivered can be compared without knowing which field means what.How much has actually been delegated so far. Equals
volume once the order is filled; on processing and partial it is the sum of the chunks delegated up to now, and 0 on failure.When the resource is scheduled to be reclaimed, ISO-8601, or
null for orders that are not reclaimed on a timer.Why a
failed order failed, as a code from the Failure reasons table on Get Order; null for any other status. Treat a code you do not know as internal_error: new codes may be added.What went back to your balance, in TRX, as a decimal string: the full
price_trx for failed, the price of the undelivered part for partial; null when nothing was refunded.Response
status can arrive more than once for one order. Treat (id, status) as the key and ignore a repeat.
activation.updated
Sent when an activation paid from your balance is settled: one made with Activate Address, on the website, or automatically when an order or a Transfer Package needs an inactive address activated.
completed — we broadcast the activation; already_activated — the address was already active and nothing was charged; failed — the activation did not happen and the charge was refunded; pending — the transaction was sent but its outcome is not known yet, so the charge is held until we check it.What the activation cost you in the end, as a decimal string:
0 after a refund and for an address that was already active.Response
pending is rare, and its final outcome does not send a second event today. If an activation stays pending, contact support.withdrawal.completed and withdrawal.failed
Sent when a withdrawal from your balance reaches its outcome, however it was requested: Create Withdrawal, the website or the Telegram bot. withdrawal.completed — the transaction was sent to the TRON network; withdrawal.failed — the withdrawal was declined and total_trx returned to your balance.
The amount sent, in TRX, as a decimal string. For a USDT withdrawal — its TRX equivalent that was charged.
What was returned to your balance for
withdrawal.failed (total_trx); null for withdrawal.completed.Response
Sometimes a withdrawal waits in
pending while we check it. That sends no event — its outcome does. To see the current state, read the withdrawal with List Withdrawals.invoice.updated
Sent to the account that owns the invoice when its status changes. data is the object Get Invoice returns, with two differences: error_message is always null, and status is the status this event announces.
Response
subscription.transfer
When the transfer was processed. Note this is inside
data and is separate from the envelope’s own timestamp.Response
Transfer Package events
The sevenpackage.* events go to the account that owns the package. A package bought by invoice without signing in or an API key has no owner and produces no events. Cancelled invoices, refused purchases and purchases held for manual review produce no events either; a held package sends package.activated once it is activated.
Every package.* event carries these fields in data:
Package ID — the
id in List Packages.Package status after the event:
active or completed for package.transfer, completed for package.completed, active for package.activated, expired for package.expired, paused for package.paused, active for package.resumed, paused or active for package.moved.Transfers left on this package after the change the event reports — an absolute number, not a difference.
remaining can also go down without an event. A multi-transfer package takes one transfer a day as its daily subscription — the first one at activation, which is why a 500-transfer package starts at remaining: 499 — and that charge is not announced. Two transfers from the same address in the same block can report the same remaining. Treat remaining as a hint and List Packages as the source of truth.(package_id, tx_hash) for package.transfer, (event, package_id, timestamp) for package.paused, package.resumed and package.moved — a package can be paused, resumed and moved many times — and (event, package_id) for the others: a retry carries the same body, the same timestamp and the same signature.
package.transfer
A transfer from the address was paid from a package. Sent once per package the transfer was charged to — almost always one event per transfer; a transfer that took the last transfer of one package and continued on the next produces one event for each.
Transfers taken from this package for this transaction. A transfer to an address that holds no USDT needs double energy and counts as
2, which can be split across two packages.status is completed when this transfer used up the package.
Response
package.completed
The package stopped serving transfers.
transfer — a transfer used up the package; subscription — the daily charge used it up; manual — support closed the package. After manual, remaining can be above zero, but those transfers can no longer be used.package.transfer of its own: you receive only package.completed with that transfer’s tx_hash.
Response
package.activated
The package became active and its transfers get energy from now on. Sent for every activation — including a purchase from balance, whose response already says active, and an invoice payment, which activates the package shortly after the payment is seen on chain.
Response
package.expired
An invoice for a package was not paid within its 30-minute window. Nothing was charged; buy again to get a new invoice. No extra fields; remaining equals quota_total and is not available to use.
Response
package.paused
The package was paused with Pause Packages: from now on it charges no daily transfer and transfers from the address are neither served nor counted. Sent once for each package the call paused; a repeated call that paused nothing sends nothing. No extra fields.
Response
package.resumed
The package is active again after Resume Packages. Sent once for each package the call resumed. No extra fields. remaining is one lower than before the pause when the resume charged the daily transfer.
Response
package.paused and the package.resumed after it can arrive in either order — compare the envelope timestamp, or read the current state from List Packages.
package.moved
The package was moved to a new address with Move Packages. Sent once for each package the call moved. address is the new address; one extra field:
Response
package.paused with the old address, then package.moved, then package.resumed with the new address; a move of a paused package sends only package.moved. status is read when the event is sent: during a move of a working package it is usually paused, and it can already be active. package.resumed tells you the package works on the new address.
Delivery
- Up to 3 attempts, with pauses of 1 second and then 4 seconds between them. There is no pause after a success and none after the last attempt.
- 10 seconds timeout per attempt.
- We expect any
2xx. Anything else counts as a failed attempt. - Redirects are not followed. A
301/302is a failed attempt, not a hop. - Missed events are not backfilled. When all three attempts fail, that event is gone; reconcile with Get Order, Get Invoice or List Packages rather than waiting for a replay.
- Events are not ordered. Each one is delivered on its own, so a later event can arrive first. A retry carries the same body, the same
timestampand the same signature. - Every order of the account sends events, auto-refill included, so a busy account gets many of them. Answer
2xxat once and do the heavy work after the response.
Verifying the signature
Every request carriesX-Webhook-Signature: sha256=<hex>, an HMAC-SHA256 over the raw request body keyed with your webhook secret.
Two details decide whether your check works:
- Strip the
sha256=prefix before comparing. The header is not a bare hex digest. - Hash the bytes you received, not a re-serialized object. Parsing the JSON and dumping it again changes key order and spacing, and the signature will never match.