> For the complete documentation index, see [llms.txt](https://docs.txn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.txn.io/api-basics/webhooks/webhook-events.md). Agents can also search and read this documentation through its [MCP server](https://docs.txn.io/~gitbook/mcp).

# Webhook events

Every webhook Txn sends carries one resource as a JSON:API document, with the resource in `data` and its related entities in `included[]`. For most resources this is the shape the corresponding Read endpoint returns. Crypto deposits are the exception: the webhook carries the `coinDeposits` entity itself, see [Crypto deposit webhooks](https://docs.txn.io/transactions/crypto-deposit-webhooks.md). There is no separate event name in the payload. Read the resource's `status` (or `simplifiedState`) to see what happened, and use the `svix-id` header to recognise a retry of a message you already processed.

Which messages an endpoint receives is chosen when you create it in the dashboard, under **Developer Tools → Webhooks**. The table lists each subscription, what triggers a message and the page that describes the payload.

| Subscription                     | Resource in `data`    | A message is sent                                                                                                                                                                                                                  | Payload                                                                                      |
| -------------------------------- | --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Invoices                         | `invoices`            | When the invoice is created; when a payment is detected and the invoice becomes `processing`; when a received payment is put on hold or rejected by screening; and when the invoice becomes `completed`, `cancelled` or `expired`. | [Invoice webhooks](https://docs.txn.io/invoices/invoice-webhooks.md)                         |
| Payouts created through the API  | `payouts`             | When the payout is created and when it reaches a final status.                                                                                                                                                                     | [Payout webhooks](https://docs.txn.io/payouts/payout-webhooks.md)                            |
| Payouts created in the dashboard | `payouts`             | Same as above, for payouts your team creates in the dashboard, including mass payouts. A separate subscription, so an endpoint can receive one kind without the other.                                                             | [Payout webhooks](https://docs.txn.io/payouts/payout-webhooks.md)                            |
| Crypto deposits                  | `coinDeposits`        | When a transfer to one of your account addresses is detected, when it is put on hold, and when it reaches a final status. Payments to invoice and channel addresses are reported as invoice and channel events instead.            | [Crypto deposit webhooks](https://docs.txn.io/transactions/crypto-deposit-webhooks.md)       |
| Channel deposits                 | `channelTransactions` | On every status change of a deposit: `pending`, `on_hold`, `completed`, `rejected`.                                                                                                                                                | [Channel webhooks](https://docs.txn.io/channels/channel-webhooks.md)                         |
| Exchange                         | `exchangeQuotes`      | When a quote you confirmed completes. Conversions Txn makes to settle an invoice send no exchange message; the invoice `completed` message carries the quote.                                                                      | [Exchange webhooks](https://docs.txn.io/exchange/exchange-webhooks.md)                       |
| Bank deposits                    | `transactions`        | When the deposit is detected and when it reaches a final state. The `bankDepositTransactions` details and the account are in `included[]`.                                                                                         | [Bank deposit webhooks](https://docs.txn.io/fiat-settlements/bank-deposit-webhooks.md)       |
| Bank withdrawals                 | `transactions`        | When the withdrawal is created and when it reaches a final state. The `bankWithdrawalTransactions` details, the bank account and the account are in `included[]`.                                                                  | [Bank withdrawal webhooks](https://docs.txn.io/fiat-settlements/bank-withdrawal-webhooks.md) |

### Delivery

* One message is sent per event. If your endpoint does not answer with a `2xx` status, the message is retried on the [retrying schedule](https://docs.txn.io/api-basics/webhooks/retrying-schedule.md) with the same `svix-id`.
* Messages for resources created by an API key associated with an endpoint are routed to that endpoint; see [Associating API keys with webhook URLs](https://docs.txn.io/api-basics/webhooks.md#associating-api-keys-with-webhook-urls).
* Verify every message before acting on it: [Verifying webhooks with the Svix libraries](https://docs.txn.io/api-basics/webhooks/verifying-webhooks-with-the-svix-libraries-recommended.md) or [Verifying webhooks manually](https://docs.txn.io/api-basics/webhooks/verifying-webhooks-manually.md). Messages come from the [source IP addresses](https://docs.txn.io/api-basics/webhooks/source-ip-addresses.md) listed in this section.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.txn.io/api-basics/webhooks/webhook-events.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
