parcelLab webhooks
parcelLab webhooks are POST requests with a JSON body that parcelLab sends to your HTTPS URL for each tracking event on a consignment, such as onDispatch or onDelivered.
How parcelLab webhooks work
Webhooks feed tracking events back into your shop systems, so you don't have to poll the Checkpoints API for each parcel. parcelLab sends one request per event per consignment, so a split order with several trackings sends an onDispatch for each, even if they ship together. It doesn't deduplicate carrier scans, so several out-for-delivery scans send several onOutForDelivery webhooks.
The body's event field says what happened. Every event has eventid, timestamp (when the event happened, not when the webhook was sent), references for the consignment and your order, data for tracking details and reporting for lead times, which are -1 until known. Some data keys appear on only one event, such as exception_code on onDelay. In the optional CloudEvent format the event is type, such as com.parcellab.tracking.event.ondelivered, and eventid is id. The docs give no payload version.
Key facts
Setting up parcelLab webhooks
- Give parcelLab an HTTPS URL and credentials. Plain HTTP isn't supported, and the docs describe no screen or API for doing this yourself, so ask your parcelLab contact.
- Choose HTTP Basic, access token headers or an OAuth 2.0 access token, and parcelLab JSON or the CloudEvent format.
referencesvalues can also be added to the URL as query parameters. - If you allowlist at the firewall, allow
35.156.240.70,35.157.215.87and35.157.195.174, the addresses parcelLab sends from. - parcelLab documents no test send and no resend.
hookdeck listen 3000 parcellabgives you a public URL that forwards to your machine, and a new test record should sendonCreated.
Delivery behaviour
not documented parcelLab doesn't state how long it waits for a response Retries 15 at 30 minute intervals after an error, about 7.5 hours; the docs don't say which responses count as errors After retries deleted parcelLab logs an error and deletes the event from its queue, and documents no resend Duplicates not deduplicated repeat carrier scans send repeat webhooks, and each event has an eventid Known failure modes
From Hookdeck's parcelLab guide →-
An outage outlasts the retries
parcelLab retries an error 15 times at 30 minute intervals, about 7.5 hours, then deletes the event from its queue. After a longer outage, read each open parcel's current status from the Checkpoints API.
Recover from missed events → -
Repeat scans send repeat webhooks
parcelLab doesn't deduplicate events, so several out-for-delivery scans send several
Handle repeat scans →onOutForDeliverywebhooks. Deduplicate oneventid, and decide per event type whether a repeat should reach the customer. -
A delivered parcel goes back to out for delivery
parcelLab's docs promise no delivery order, and a retry arrives at least 30 minutes late. Compare
Keep statuses in order →timestampwith the latest you've stored, and ignore earlier statuses afteronDeliveredoronReturn. -
A split order looks fully shipped too early
Each tracking in a split order gets its own
Handle split orders →onDispatch, even if they ship together. Don't mark the whole order shipped on the first one: track each consignment byreferences.courierandreferences.tracking_number.
parcelLab webhook best practices
- Return a 2xx quickly. parcelLab doesn't state how long it waits. Check the credentials, store the body and respond, then do the work in a background job.
- Deduplicate on
eventid, then on meaning. A secondonScheduledwith a new date is news, while a secondonOutForDeliveryusually isn't, so guard customer messages per consignment and event. - Treat
onDeliveredandonReturnas final. parcelLab marks both as final events, so ignore any earlier status that arrives after them. - Alert well inside the retry window. Retries stop after about 7.5 hours. Alert on errors from your endpoint and watch success rate in parcelLab's Webhooks report.
- Key on the tracking, not the order.
A split order has several trackings. Use
references.courierwithreferences.tracking_numberfor the consignment, andreferences.orderNoto find the order. - Show customers the localized strings.
delivery_status_locale_shortanddelivery_status_locale_longfollowreferences.language, whileraw_scanis whatever the carrier sent.
Common parcelLab webhook events
Shipping progress
onDispatch | First carrier scan puts the consignment on its way |
onOutForDelivery | Carrier takes the consignment out for delivery |
onDelivered | Consignment reaches the recipient, the final event |
Delivery problems
onDelay | Delay or delivery issue arises, with a reason code |
onFailedAttempt | Carrier can't reach the recipient or delivery location |
onReturn | Delivery fails and the consignment goes back, the final event |
Events
| Resource | Events | Payloads |
|---|---|---|
parcelLab events | 11 | 0 |
In this hub
| Webhook events → | Every covered parcelLab event, with payloads where the registry has them. |
| MCP events → | How an agent subscribes to parcelLab events as MCP events. |
| Verify signatures → | Signature facts, verification code and common failures. |
| Production guide → | Production problems, such as timeouts and retries, and how to handle them. |
| Agent skill → | Install the webhook skill in your coding agent. npx skills add hookdeck/webhook-skills --skill parcellab-webhooks |
Keep an outage from losing parcelLab's final delivery events.
Event Gateway checks the Basic credentials, accepts each tracking event as it arrives, queues it and retries to your service on your schedule, so a failing handler doesn't lose an event when parcelLab's 15 retries run out.