> For the complete documentation index, see [llms.txt](https://codemash.gitbook.io/codemash/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codemash.gitbook.io/codemash/cloud/payments/triggers.md).

# Triggers

The list of payment triggers — actions that run when your payment provider reports an event.

**Where:** Payments → **Triggers** · `/projects/<project>/payments/triggers`

A payment trigger runs an action — send an email, a push or an SMS, call a webhook, run code, send an in-app event — when one of your [integrations](/codemash/cloud/payments/integrations.md) receives a webhook call from the provider. It can listen to every integration and every event, or only to the ones you tick (for example only `payment_intent.succeeded` from your Stripe integration). The rules shared by every module are on the [Triggers](/codemash/cloud/concepts/triggers.md) concept page.

<figure><img src="https://712692422-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHy372bqsaex2cqS3ikhL%2Fuploads%2Fgit-blob-67171a22106a964187d18e417d4bf94ba8b3943e%2Ftriggers-list-1.png?alt=media" alt="Payments Triggers list with three rows: Tell support about refunds, Old test trigger, Email billing when a payment succeeds — all When webhook call received, Send Email, Enabled Yes"><figcaption><p>Three payment triggers.</p></figcaption></figure>

## Columns, search and filters

| Column       | What it shows                                                                                                                                                                                    |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Trigger Name | The name you gave the trigger. Press it to open the trigger.                                                                                                                                     |
| When         | The event: **When webhook call received** (the other two cards, *When order created* and *When order paid*, never run today — see [Create a trigger](/codemash/cloud/payments/triggers/new.md)). |
| What         | The action, for example **Send Email**.                                                                                                                                                          |
| Enabled      | **Yes** — the trigger runs; **No** — it is kept but quiet.                                                                                                                                       |

The list has no search or filters. **Add New** opens the [create form](/codemash/cloud/payments/triggers/new.md).

## What you can do here

* [Create a trigger](/codemash/cloud/payments/triggers/new.md)
* [Edit a trigger](/codemash/cloud/payments/triggers/edit.md) — filters, action, recipients and tokens
* [Enable or disable a trigger](/codemash/cloud/payments/triggers/enable.md)
* [Delete a trigger](/codemash/cloud/payments/triggers/delete.md)

## Do it from code

```ts
const { list } = await norbix.hub.payments.getPaymentsTriggers();
console.log(list.items.map((t) => `${t.name} (${t.type}, ${t.actionType}, ${t.isEnabled ? 'on' : 'off'})`));
```

```sh
norbix hub payments triggers get
```

The client setup is on the [Payments page](/codemash/cloud/payments.md#use-it-from-code). API: [Get Payments Triggers](/codemash/api-reference/payments/triggers/get-payments-triggers.md)
