Skip to content

Webhooks

Merchant teamDevelopers

A webhook sends events to your own systems as they happen: when a delivery is booked, picked up, delivered or fails, when a return is created, or when a manifest is ready. Shipr sends a signed POST request with the event to a URL you choose.

Use webhooks to update an order system, a warehouse system or a customer notification tool without asking Shipr for changes.

This page covers setting webhooks up in the dashboard. For the request body, the headers and how to check the signature, see Webhooks for developers.

You can Needs
See webhooks and their logs webhooks:read. Owners, admins, operators and read-only users with access to all locations.
Add, edit, delete, test and retry webhooks:write. Owners, admins and operators with access to all locations.

Webhooks are for the whole business, not one location. Store staff limited to some stores can’t see them.

The Webhooks page listing one endpoint with its events and status

  1. Go to Settings → Webhooks and press Add webhook.

  2. Enter the Endpoint URL, for example https://example.com/webhooks/shipr. It must be an HTTPS address that responds within a few seconds.

  3. Under Events to send, tick the events you want. Select all ticks every one. You need at least one.

  4. If your endpoint expects it, enter an Authentication secret.

  5. Leave Active ticked to start sending straight away.

  6. Press Add webhook.

  7. Copy the signing secret that appears at the top of the page and store it in your system.

Option What it does
Endpoint URL Where Shipr sends events. It must use HTTPS and be reachable from the internet. Addresses on private networks, and URLs with a user name and password in them, are refused. Shipr follows up to three redirects.
Events to send Which events go to this URL. See Events.
Authentication secret (optional) A value of your own. If set, Shipr also signs each request with it in an X-Signature header, as well as the usual signature. Use it if your endpoint already checks a shared secret.
Active Untick to pause events to this URL without deleting the webhook. Events that happen while it’s paused aren’t sent later.

You can add more than one webhook, for example one per system, each with its own events. The same URL can be added twice with different events.

Group Event Sent when
Deliveries Created A delivery is booked, from the dashboard, an import or the API.
Pending pickup A delivery is waiting to be collected, including a store delivery returned to the store when a driver ends a trip early.
Picked up The carrier or driver has collected it.
In transit It’s on its way through the carrier’s network.
Out for delivery It’s on the last leg. For a store delivery, the driver is heading to that stop.
Delivered It’s been delivered.
Failed The delivery attempt failed.
Cancelled It was cancelled.
Returned It’s being returned to the sender.
Updated Its details changed, for example a store delivery was rescheduled or edited.
Returns Created, Updated A return is created or changes.
Manifests Created, Ready A manifest is created, or is ready.

The table lists the events you can choose in the dashboard. Developers can subscribe to a few more through the API. See Webhooks for developers.

  • Edit opens the form with the webhook’s settings. Change the URL, events, authentication secret or Active, then press Save changes. Changes apply to new events.
  • To change the authentication secret, type a new one. Leave it blank to keep the saved one, or press Remove to delete it when you save.
  • To pause a webhook, edit it and untick Active. The list shows it as Paused.
  • The bin button deletes the webhook. Shipr stops sending events to it, and its delivery logs are deleted too. This can’t be undone.

Use a test to check your endpoint receives and accepts Shipr’s requests before real events arrive.

  1. Under Send a test event, choose the Webhook and the Event.

  2. Press Send test.

  3. Open the webhook’s Logs to see the result.

A test is a sample event, signed like a real one. It shows in the logs marked test. You can’t test a paused webhook.

Press Logs on a webhook to see the most recent 50 events Shipr sent to it, newest first. Press Refresh to update the list.

The Webhook delivery logs page showing delivered and failed events with response codes

Column What it shows
Event ID The event’s unique ID. Your system can use it to ignore an event it’s already had.
Type The event, such as delivery.delivered. Tests are marked test.
Status queued (waiting or retrying), delivered (your endpoint accepted it) or failed (Shipr gave up).
Attempts How many times Shipr has tried to send it.
Last attempt When it last tried, and how that went: success, failed or timeout.
Response The HTTP status code your endpoint returned.
Action Retry sends the event again.

Shipr waits up to 5 seconds for your endpoint to answer.

Your endpoint returns What Shipr does
Any 2xx code Marks it delivered.
408, 429, any 5xx, a timeout or no connection Tries again, waiting longer each time, up to 6 attempts in all.
Any other 4xx code Marks it failed. No more tries.

After the last attempt fails, the event is marked failed. Fix your endpoint, then press Retry on the event in the logs to send it again. Retry isn’t available for test events.