Stax Bill supports using webhooks to facilitate communication with other web apps. Webhooks can be configured to automatically notify third-party web apps of important events on the Stax Bill side. "Event" refers to creating or altering data in Stax Bill, such as customer, payment, or subscription data.
How Do Webhooks Differ From Polling?
In polling, an app requests new events to an endpoint at a predetermined frequency. If the endpoint doesn’t respond, no new events have occurred since the last request. A webhook, by contrast, runs when a specific event occurs, triggering a notification to be sent to the configured endpoint(s). Polling can be compared to a parent asking a child every 10 minutes whether they are hungry, whereas webhooks can be compared to the child signalling to the parent that they need something to eat. The event notification is sent automatically, in real-time, rather than in response to a periodic request for new events.
How Do Webhooks Work?
To configure a webhook, specify the triggering event(s) and the URL to be notified. When an event occurs in "app A," the event information is automatically sent to "app B" through the specified URL.
Stax Bill supports creating multiple webhooks, each with a different target URL.
For more information about when and how to use webhooks, see the Stax Bill developer documentation.
For the complete list of supported events, see Webhook Events.