# 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`.

Agent skill: `npx skills add hookdeck/webhook-skills --skill parcellab-webhooks` ([details](https://hookdeck.com/webhooks/parcellab/skill))

> Independent reference generated from hookdeck/webhook-registry (commit ff7f882, 20 Nov 2026). [parcelLab's official docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks).

[Overview](https://hookdeck.com/webhooks/parcellab) · [Webhook events (11)](https://hookdeck.com/webhooks/parcellab/events) · [MCP events](https://hookdeck.com/webhooks/parcellab/mcp-events) · [Verify signatures](https://hookdeck.com/webhooks/parcellab/verify) · [Production guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts) · [Agent skill](https://hookdeck.com/webhooks/parcellab/skill)

## Key facts

| Fact | Value | Source |
|---|---|---|
| Signature header | `None (unsigned)` | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| How events are identified | `The body's event field, or type in CloudEvent format` | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| Body format | `JSON` Content type: application/json. | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| Event families | `parcelLab JSON, CloudEvent format` | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| Other headers | `content-type, authorization` | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| Envelope | `data, event, eventid, references, reporting, timestamp` | [parcelLab docs](https://docs.parcellab.com/docs/developers/v2/data-elements/get-status-updates/webhooks) |
| Agent skill | `npx skills add hookdeck/webhook-skills --skill parcellab-webhooks` | [Agent skill →](https://hookdeck.com/webhooks/parcellab/skill) |

[Verify parcelLab webhooks](https://hookdeck.com/webhooks/parcellab/verify)

## How parcelLab webhooks work

Webhooks feed tracking events back into your shop systems, so you don't have to poll the [Checkpoints API](https://docs.parcellab.com/docs/developers/v2/status-updates/checkpoints) 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.

## 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

- **Timeout:** not documented. parcelLab doesn't state how long it waits for a response. [Guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#timeouts)
- **Retries:** 15. at 30 minute intervals after an error, about 7.5 hours; the docs don't say which responses count as errors. [Guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#retries)
- **After retries:** deleted. parcelLab logs an error and deletes the event from its queue, and documents no resend. [Guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#retries)
- **Duplicates:** not deduplicated. repeat carrier scans send repeat webhooks, and each event has an `eventid`. [Guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#duplicates)

## Known failure modes

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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#retries)
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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#duplicates)
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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#ordering)
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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#choosing-events)

From [Hookdeck's parcelLab guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts).

## parcelLab webhook best practices

- **[Return a 2xx quickly](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#timeouts).** 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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#duplicates).** A second `onScheduled` with a new date is news, while a second `onOutForDelivery` usually isn't, so guard customer messages per consignment and event.
- **[Treat `onDelivered` and `onReturn` as final](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#ordering).** parcelLab marks both as final events, so ignore any earlier status that arrives after them.
- **[Alert well inside the retry window](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#retries).** 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](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#choosing-events).** A split order has several trackings. Use `references.courier` with `references.tracking_number` for the consignment, and `references.orderNo` to find the order.
- **[Show customers the localized strings](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts#other-limits).** `delivery_status_locale_short` and `delivery_status_locale_long` follow `references.language`, while `raw_scan` is whatever the carrier sent.

## Common parcelLab webhook events

### Shipping progress

- [onDispatch](https://hookdeck.com/webhooks/parcellab/events#onDispatch): First carrier scan puts the consignment on its way
- [onOutForDelivery](https://hookdeck.com/webhooks/parcellab/events#onOutForDelivery): Carrier takes the consignment out for delivery
- [onDelivered](https://hookdeck.com/webhooks/parcellab/events#onDelivered): Consignment reaches the recipient, the final event

### Delivery problems

- [onDelay](https://hookdeck.com/webhooks/parcellab/events#onDelay): Delay or delivery issue arises, with a reason code
- [onFailedAttempt](https://hookdeck.com/webhooks/parcellab/events#onFailedAttempt): Carrier can't reach the recipient or delivery location
- [onReturn](https://hookdeck.com/webhooks/parcellab/events#onReturn): Delivery fails and the consignment goes back, the final event

## Events

| Resource | Events | Payloads |
|---|---|---|
| [parcelLab events](https://hookdeck.com/webhooks/parcellab/events#resource-other) | 11 | 0 |

[All 11 events](https://hookdeck.com/webhooks/parcellab/events)

## In this hub

- [Webhook events](https://hookdeck.com/webhooks/parcellab/events): Every covered parcelLab event, with payloads where the registry has them.
- [MCP events](https://hookdeck.com/webhooks/parcellab/mcp-events): How an agent subscribes to parcelLab events as MCP events.
- [Verify signatures](https://hookdeck.com/webhooks/parcellab/verify): Signature facts, verification code and common failures.
- [Production guide](https://hookdeck.com/webhooks/parcellab/guide-duplicates-ordering-retries-timeouts): Production problems, such as timeouts and retries, and how to handle them.
- [Agent skill](https://hookdeck.com/webhooks/parcellab/skill): Install the webhook skill in your coding agent. `npx skills add hookdeck/webhook-skills --skill parcellab-webhooks`
---

Not affiliated with parcelLab. Facts are compiled from public sources and linked inline. [View as JSON](https://hookdeck.com/webhooks/parcellab.json) · [Report a correction](https://hookdeck.com/contact)
