- In our system, an event corresponds to a change in the order status. When an event occurs, our system notifies you by calling the URL you provided.
How Our Webhook Works
- Subscription to Events: The remote API (client) subscribes to events on our API by providing a callback URL where events will be sent.
- Event Triggering: When an event occurs within our system, a
POSTrequest is sent to the client’s callback URL with details about the event. - Payload: The payload of the
POSTrequest contains information about the status of the order. - Response Handling: The client’s server processes the incoming webhook payload and responds with a status code to acknowledge receipt.
Steps to Set Up a Webhook
1
Register a Webhook
Provide the callback URL where events will be sent. Create
Webhook
2
Handle Incoming Requests
Ensure your server can handle POST requests and process the incoming event
data.
3
Acknowledge Receipt
Respond to the webhook POST request with a 2xx status code to acknowledge
successful receipt.