Webhooks
Last updated
Txn supports webhooks for the following transaction types:
Manual Payout via UI
Direct crypto deposits received into your account
Webhooks are triggered each time the state of a transaction is updated.
You can configure your webhook URLs on the Developers → Webhook URLs tab in your Txn account.



When creating or editing a webhook URL, you can associate one or more API keys with it. All transaction events for resources created by an associated key — invoices, payouts, channels, exchanges, and deposits — are routed to that endpoint.
This lets you route events from different parts of your integration to different endpoints. For example, you could direct invoice events to one service and payout events to another by using separate API keys, each associated with its own webhook URL.
API key rotation breaks webhook routing for all resources created by the old key.
Every resource — invoice, payout, channel, and so on — is permanently linked to the API key that created it. Webhook routing follows that link: if the creating key is associated with a webhook URL, events are sent there; if the key is deleted, events stop being sent anywhere.
Example: API key A is associated with webhook URL B. A channel is created using key A. Key A is later deleted and key D is created. Even though key D exists and may be associated with URL B, the channel was created by key A — so its events no longer route to URL B or anywhere else.
When rotating API keys:
Create the new API key first.
Associate the new key with the relevant webhook URLs before using it to create any resources.
Keep in mind that any resources already created by the old key will stop routing events as soon as the old key is deleted — there is no way to reassign them to a new key after the fact.
Last updated