Appearance
Agency webhooks
SaaS mode › Webhooks sends your own systems a message whenever a client's plan changes or is cancelled, so a billing tool, a spreadsheet automation or Zapier hears about it straight away. Agency owners and admins manage it.
You'll need
- An agency owner or admin account.
- An address that receives the messages: it must start with
https://and be reachable on the internet (for example a Zapier or Make "catch hook" address).
Add an endpoint
- Enter the Endpoint address and, if you like, a Description.
- Under Send these events, keep or untick:
- A plan started, changed or was kept (
saas.plan_changed): a client's plan started, was upgraded, downgraded or changed, was restarted, or the client took your offer to stay. - A plan was cancelled or ended (
saas.subaccount_cancelled): a plan was set to cancel at the end of the period, or ended.
- A plan started, changed or was kept (
- Select Add endpoint. Copy the Signing secret now: it is not shown again. Your developer uses it to check that each message came from us.
Check that it works
Select Send a sample to send a made-up plan change straight away, then Deliveries to see each message, whether it was Delivered, is Retrying or Failed, and what the receiver answered.
Send a message again
In Deliveries, Replay sends a message that Failed (or one that was Delivered, if your system lost it) again straight away, with the same id, and shows the receiver's new answer. Use it after fixing the receiving end. A message that is still Retrying has no Replay: it is sent again automatically. The endpoint must be turned on.
How delivery works
- Messages go out as soon as the change happens. If the receiver does not answer, or answers with an error, it is tried again over the following hours (8 tries).
- An endpoint that answers "gone" (410), or fails 5 messages in a row, is turned off. Turn on starts it again for new changes.
- Turn off stops an endpoint without deleting it; messages still waiting are dropped. Delete removes it.
- Up to 10 endpoints per agency.
Good to know
- Each message carries an id that stays the same on every retry, so a receiver can ignore repeats.
- Developers can manage the same endpoints with the agency API: see Agency API.