Webhooks
Altruon uses webhooks in two directions. Providers notify Altruon, and Altruon notifies you. They are set up in different places.
"Webhook" means two different things in an Altruon integration. Mixing them up is the most common setup mistake, so this page separates them.
| Provider webhooks | Altruon webhooks | |
|---|---|---|
| Direction | Acquirer or billing platform to Altruon | Altruon to your server |
| Why | Altruon learns that a payment settled, an invoice is due or a subscription changed | You learn that a subscription, invoice, payment or session changed |
| Required | Yes. Payments and renewals depend on them | Optional, and recommended |
| Where you set it up | In the provider's dashboard, with a URL that Altruon gives you | In the Altruon backoffice, Settings > Webhooks |
| Guide | Each connection guide | Webhooks |
Provider webhooks: into Altruon
Altruon relies on these to finish anything asynchronous: a 3D Secure challenge that completes later, a Pix payment, a direct debit, a trial that becomes an active subscription, a renewal that falls due.
There are two families, acquirer webhooks and billing platform webhooks, and providers differ in how they are set up:
- Some need you to copy an endpoint URL from Altruon into the provider's dashboard.
- Some are registered for you when you connect.
- Some are configured by the provider's support team.
Follow the webhook step in the guide for each provider you connect. If a provider webhook is missing, payments can stay pending and renewals are not collected.
Altruon webhooks: to your server
You register an HTTPS endpoint, choose the events it receives, and get a signing secret. Altruon then posts a signed JSON event each time one of those events happens.
- Up to 2 active endpoints per site.
- Events are signed with HMAC-SHA256 in the
Altruon-Signatureheader. - A delivery succeeds when your server answers with a 2xx within 10 seconds. Failed deliveries are retried, up to 4 attempts in total.
- Payloads are thin. Treat an event as a trigger and fetch the current state from the API.
Start with Webhooks, then Event types and Verify signatures.
Which one do I need to debug
| Symptom | Look at |
|---|---|
| A payment stays pending in Altruon | The acquirer's webhook to Altruon |
| Renewals are not collected | The billing platform's webhook to Altruon |
| A trial never becomes active | The billing platform's webhook to Altruon |
| Your server is not notified | The endpoint under Settings > Webhooks and its delivery log |
More in Troubleshooting.