API reference · Webhooks
Event types
Every event Altruon can send to your webhook endpoint, grouped by resource, and when each one fires.
The type field of the event payload holds one of the values below. You choose which events an endpoint receives when you create it, and you can change the selection later on the Events tab of the endpoint.
Subscription
| Event | Sent when |
|---|---|
subscription.created | A subscription is created, including trial signups |
subscription.activated | A subscription becomes active, for example at the end of a trial |
subscription.paused | A subscription is paused |
subscription.resumed | A paused subscription is resumed |
subscription.cancelled | A subscription is canceled |
subscription.pre_debit_notification.sent | A pre-debit notification was sent to the customer, for example for Pix Automático |
Invoice
| Event | Sent when |
|---|---|
invoice.created | An invoice is generated by the billing platform |
invoice.paid | An invoice is fully paid |
invoice.dunning_started | Payment collection failed and retries (dunning) started |
invoice.dunning_exhausted | All dunning retries failed |
invoice.refunded | An invoice is refunded |
Payment
| Event | Sent when |
|---|---|
payment.processing | A payment is being processed by the acquirer |
payment.succeeded | A payment succeeded |
payment.failed | A payment failed |
payment.retry_failed | A retry of a recurring payment failed |
payment.refunded | A payment is refunded |
Refund
| Event | Sent when |
|---|---|
refund.processing | A refund is being processed |
refund.succeeded | A refund succeeded |
refund.failed | A refund failed |
Customer
| Event | Sent when |
|---|---|
customer.created | A customer is created |
customer.updated | A customer is updated |
Checkout session
| Event | Sent when |
|---|---|
checkout.session.completed | A session completed successfully |
checkout.session.expired | A session expired without payment |
System
| Event | Sent when |
|---|---|
webhook.ping | A test event is triggered from the backoffice |
webhook.ping is sent by Send test event while you create an endpoint (unsigned) and by Send Test on the endpoint detail page (signed). Test events sent from the backoffice have domain set to "test".