Webhook
Learn how to listen to events when certain actions occur in your integration with Shiip API.
Last updated
Learn how to listen to events when certain actions occur in your integration with Shiip API.
Last updated
Webhooks provide a mechanism for automated communication between applications. When specific events are triggered within your integration with our API, we send a notification containing an event payload with the relevant data.
For example, when a shipment status is updated for one of your users, our system will send an event that includes the shipment details and its new status. This allows you to deliver real-time updates to your users or process the payload as needed.
To enable event notifications, you must configure a webhook URL in your application settings. This can be done through our business web app by navigating to Settings > API Settings and updating your webhook URL. Proper configuration ensures your system receives event data promptly for further processing or integration with your workflow.
When setting up a webhook for your application, keep the following considerations in mind:
Ensure that the endpoint is configured to accept POST requests.
The timeout for our webhook is 30 seconds. If your webhook processing is resource-intensive, consider handling it asynchronously to avoid timeouts.
Perform a test request on your endpoint to confirm it can successfully receive and process the payload.
Additionally, in production, webhooks are sent every 30 minutes, whereas in the Sandbox/Staging environment, webhooks are dispatched every 5 minutes.
Here’s a breakdown of the shipment statuses in a tabular form:
Status
Description
Pending
The shipment has been created, but the pickup process has not yet started. Awaiting confirmation.
In Progress
The shipment is currently being processed, and preparations are being made for pickup or transit.
Picked Up
The shipment has been collected by the courier and is in transit to the destination.
Delivered
The shipment has been successfully delivered to the recipient at the specified location.