Alert rules watch one event and notify you when it meets a condition, for example every payment above $500, or 5 or more failed payments in an hour. Open Settings > Notifications and find the Alert Rules card.
- 1Click Add Rule and give the rule a name.
- 2Choose the Event: payment succeeded, payment failed, payment refunded, dispute created, payout completed, invoice overdue, subscription cancelled or subscription renewal failed.
- 3Choose the Field. Amount (USD) compares the amount in US dollars, converted from the payment's own currency. Count in the last hour counts how many times the event happened in the last hour, this one included.
- 4Choose the operator and enter the value, then tick one or more channels under Notify via and click Create Rule.
| Channel | What you get |
|---|---|
An Alert Rule Triggered email to your account email and to team members whose role can see that area. | |
| In-app | A notification in the bell at the top of the dashboard, linking to the payment, payout, invoice or subscription. |
| Webhook | An alert.triggered event to your webhook endpoints that receive it, with the rule, its condition and the observed value. |
How often a rule fires
An amount rule fires once for each payment, refund, payout, invoice or subscription that meets it, even if the event is sent again. A count rule fires at most once an hour. Each rule shows when it last fired; click Refresh to update it.
Use the switch on a rule to pause it without deleting it. You can have up to 25 rules.
A rule saved before PaymentHooks checked rules, with a field or event it cannot watch, is marked This rule can never fire with the reason. It is never changed for you: delete it and create it again.