ShipBob webhooks automatically notify your app when key events occur, allowing you to keep your data in sync.
Subscribe to webhooks
Create a webhook to subscribe to an event and define a subscription URL.
Receive Webhook Events
When the event occurs, ShipBob sends a POST
request to your subscription URL with relevant data.
Acknowledge Receipt
Your system should return a 2XX
response to confirm successful receipt.
Handle Retries
If no 2XX
response is received, ShipBob retries delivery for up to 24 hours using an exponential backoff strategy.
2XX
HTTP response is required to confirm webhook receipt.order_shipped
and shipment_delivered
events to provide live tracking updates to customers.shipment_exception
events to detect and respond to stock shortages.shipment_onhold
) or delivered (shipment_delivered
).shipment_cancelled
events to update your system when a shipment is canceled.Topic | Description | Scopes Required |
---|---|---|
order_shipped | Fires when a shipping label is purchased, printed, and scanned. If the order is split into multiple shipments, this fires per shipment. | orders_read |
shipment_delivered | Fires when a shipment is delivered to the customer. | orders_read or fulfillments_read |
shipment_exception | Fires when a shipment is moved to exception status (e.g., out-of-stock items). | orders_read or fulfillments_read |
shipment_onhold | Fires when a shipment moves to On-Hold status due to missing information (e.g., address issues). | orders_read or fulfillments_read |
shipment_cancelled | Fires when a shipment is canceled. Does not fire for manually canceled or imported orders. | orders_read or fulfillments_read |
ShipBob sends webhook notifications with the following headers:
Unless specified in the table above, the webhook notification sends the full data model of the underlying resource, that is available in the GET endpoint.
Body sample for order_shipped topic:
Body sample for shipment_delivered topic:
Body sample for shipment_onhold topic:
Body sample for shipment_exception topic:
Body sample for shipment_cancelled topic:
✅ Use HTTPS - Subscription URLs must support SSL. Use RequestBin for testing if needed.
✅ Implement Redundancy - Webhooks may be delayed or lost. Use GET
endpoints to periodically reconcile data.
✅ Retry Handling - Events may arrive out of order due to retries—handle them as independent updates.
✅ Use Idempotency - Store webhook event id
s and discard duplicates to prevent redundant processing.
✅ Logging & Monitoring - Log webhook requests and responses to diagnose issues.
Webhook Not Triggering?
returns a 2XX response
to ShipBob’s POST
request.has the correct webhooks_read or webhooks_write permissions
.Webhook Retries Are Overloading My Server
2XX
response before doing heavy processing.Webhook Data is Out of Order
Receiving Duplicate Events?