Webhooks
You can configure webhook endpoints via the API to be notified about events that happen in your BSPK Company.
A webhook enables BSPK to push real-time notifications to your app whenever an event happens in your account. Webhooks are particularly useful for asynchronous events like when a Sales Associate creates or updates a client. BSPK uses HTTPS to send these notifications to your app as a JSON payload. You can then use these notifications to execute actions in your backend systems.
Most users configure webhooks to sync their external systems’ data, like ERPs, to whenever some information changes at BSPK level.
Steps to receive webhooks
You can start receiving event notifications in your app using the steps in this section:
- Identify the events you want to monitor and the event payloads to parse.
- Create a webhook endpoint as an HTTP endpoint (URL) on your local server (making sure it is publicly accessible).
- Register your publicly accessible endpoint URL in the BSPK webook endpoint’s api.
- Handle requests from BSPK by parsing each event object and returning
2xx
response status codes. - Test that your webhook endpoint is working properly.
- Deploy your webhook endpoint to production.
- Replace your local server webhook endpoint with your Production endpoint.