Skip to Content
Concepts

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 webhooksAltruon webhooks
DirectionAcquirer or billing platform to AltruonAltruon to your server
WhyAltruon learns that a payment settled, an invoice is due or a subscription changedYou learn that a subscription, invoice, payment or session changed
RequiredYes. Payments and renewals depend on themOptional, and recommended
Where you set it upIn the provider's dashboard, with a URL that Altruon gives youIn the Altruon backoffice, Settings > Webhooks
GuideEach connection guideWebhooks

Provider webhooks: into Altruon

Provider to Altruon
AcquirerAltruonBilling platform01 Payment outcome02 Invoice due, subscription changed03 Record payment on the invoice

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

Altruon to your server
AltruonYour server01 POST signed event02 Verify Altruon-Signature03 2xx within 10 seconds04 Fetch current state (API)

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-Signature header.
  • 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

SymptomLook at
A payment stays pending in AltruonThe acquirer's webhook to Altruon
Renewals are not collectedThe billing platform's webhook to Altruon
A trial never becomes activeThe billing platform's webhook to Altruon
Your server is not notifiedThe endpoint under Settings > Webhooks and its delivery log

More in Troubleshooting.