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.

11 events covered

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

Signature header
None (unsigned)
How events are identified
The body's event field, or type in CloudEvent format
Body format
JSON

Content type: application/json.

Event families
parcelLab JSON, CloudEvent format
Other headers
content-type, authorization
Envelope
data, event, eventid, references, reporting, timestamp
Agent skill
npx skills add hookdeck/webhook-skills --skill parcellab-webhooks

Verify parcelLab webhooks →

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. references values can also be added to the URL as query parameters.
  • If you allowlist at the firewall, allow 35.156.240.70, 35.157.215.87 and 35.157.195.174, the addresses parcelLab sends from.
  • parcelLab documents no test send and no resend. hookdeck listen 3000 parcellab gives you a public URL that forwards to your machine, and a new test record should send onCreated.

Delivery behaviour

  1. 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 →
  2. Repeat scans send repeat webhooks

    parcelLab doesn't deduplicate events, so several out-for-delivery scans send several onOutForDelivery webhooks. Deduplicate on eventid, and decide per event type whether a repeat should reach the customer.

    Handle repeat scans →
  3. 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 timestamp with the latest you've stored, and ignore earlier statuses after onDelivered or onReturn.

    Keep statuses in order →
  4. A split order looks fully shipped too early

    Each tracking in a split order gets its own onDispatch, even if they ship together. Don't mark the whole order shipped on the first one: track each consignment by references.courier and references.tracking_number.

    Handle split orders →

parcelLab webhook best practices

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

onCreated · onDelay · onDelivered · onDispatch +7

11 0

All 11 events →

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.

Not affiliated with parcelLab. Facts are compiled from public sources and linked inline.