Webhooks - Shipment Status Push Notifications - EN
Webhooks - Shipment Status Push Notifications
1. Introduction
Balíkobot offers push notifications (webhooks) triggered by every shipment status change. Instead of polling the TRACKSTATUS method, you receive status updates instantly on your endpoint.
Webhooks are an optional feature. To activate them, contact the Balíkobot team at balikobot@balikobot.cz.
Reliability: webhooks are a best effort channel
Delivery is not guaranteed. If your endpoint is unavailable or returns an error code, we retry three times at one hour intervals and then discard the notification permanently. Because those retries are delayed, a notification can also arrive after a newer one, so the order of delivery is not guaranteed either, and the same notification may be delivered more than once.
Do not make webhooks the only source of truth for business critical processes such as releasing an order, triggering a payment or a refund, customs clearance or automated handover of a shipment. The authoritative source of shipment status is the TRACKSTATUS method; keep verifying statuses through it periodically.
If you still intend to build a critical process on webhooks, contact us at balikobot@balikobot.cz before you go live. We will go through your scenario with you and agree on a suitable setup.
2. How It Works
Once webhooks are activated, Balíkobot automatically monitors the statuses of your shipments. Whenever a shipment status changes, Balíkobot sends an HTTP POST request to your specified URL with the details of the change.
A webhook is sent only when the status changes, not repeatedly on every carrier poll. If the shipment status remains the same, no webhook is sent.
3. Activation Requirements
To enable webhooks, please provide the following three pieces of information:
Information | Description |
|---|---|
Endpoint URL | Full URL of your endpoint that will receive notifications (e.g. |
Username | Username for Basic Auth authentication |
Password | Password for Basic Auth authentication |
Send these details to balikobot@balikobot.cz. We will handle the activation on our side.
4. Endpoint Requirements
Your endpoint must meet the following conditions:
Accepts HTTP POST with a JSON body (
Content-Type: application/json).Secured with Basic Auth using the credentials you provide.
Returns HTTP status code 200, 201, 204, or 208. Any other code is treated as an error and we will retry (see Retry Policy).
Responds quickly. We recommend the following pattern: accept the request, store the data, return a response immediately, and process asynchronously.
Is idempotent. The same notification may be delivered more than once under certain circumstances (e.g. after a retry). Your system should handle duplicate messages gracefully.
5. Notification Format
Balíkobot sends notifications as HTTP POST requests with the following headers:
Header | Value |
|---|---|
Content-Type |
|
Authorization | Basic Auth (your credentials) |
User-Agent |
|
Example Payload (JSON)
{
"date": "2024-04-18 12:25:54",
"name": "Parcel was successfully delivered.",
"name_balikobot": "Zásilka byla doručena příjemci.",
"status_id": 1,
"status_id_v2": 1.2,
"type": "event",
"SID": "16345",
"CPID": "23655025298555",
"carrier_id": "23655025298555",
"eid": "3171246661ceb2ee5697",
"package_id": "add-dpd-17555409",
"carrier": "dpd"
}Field Descriptions
Field | Type | Description |
|---|---|---|
| string | Date and time of the event in |
| string | Status description in English (original text from the carrier) |
| string | Status description in Czech (Balíkobot translation) |
| integer | Main status code (same as returned by the TRACKSTATUS method) |
| float | Detailed v2 status code (same as returned by the TRACKSTATUS method) |
| string | Event type ( |
| string | Sender identifier (your account) |
| string | Carrier tracking number |
| string | Carrier tracking number (same as CPID) |
| string | Your unique shipment identifier (the value you provided when calling ADD) |
| string | Balíkobot internal shipment identifier |
| string | Carrier code (e.g. |
Matching Shipments
To match a notification to the correct shipment in your system, we recommend using the eid field, which is your own shipment identifier provided when creating the shipment via the ADD method. Alternatively, you can use the CPID field (carrier tracking number).
6. Retry Policy
If your endpoint does not return a successful HTTP code (200, 201, 204, or 208), Balíkobot will retry the notification:
Parameter | Value |
|---|---|
Number of attempts | 3 (including the initial attempt) |
Interval between attempts | 1 hour |
After the third unsuccessful attempt, the notification is permanently discarded and is not delivered at all.
Recommendation: Use webhooks as your main trigger for status updates, but treat TRACKSTATUS as the authoritative source and verify shipment statuses through it periodically (e.g. once daily). This covers cases where a notification could not be delivered successfully.
7. Important Notes and Limitations
No delivery guarantee. Webhooks are a best effort channel: neither delivery nor the order of notifications is guaranteed. Before you build a business critical process on them, read the warning at the top of this page and contact us.
Status changes only. Webhooks are sent exclusively when a shipment tracking status changes. Notifications for shipment creation, label printing, pickup orders, or invoicing are not available via webhooks.
All statuses. Filtering specific statuses on our side is not possible. If you want to react only to certain statuses (e.g. delivery), filter incoming notifications by
status_idorstatus_id_v2in your system.Shipment must be closed. Webhooks work only for shipments where the ORDER method has been called. Shipments that have not yet been closed are not tracked.
Status codes. The values of
status_idandstatus_id_v2are identical to those returned by the TRACKSTATUS method. Refer to the technical documentation for the full list.Certificate. Your endpoint does not need a certificate from a public certificate authority; self-signed certificates are accepted. However, we recommend using a valid HTTPS certificate.
8. Quick Integration Checklist
Create an endpoint that accepts POST requests with a JSON body and Basic Auth.
The endpoint must return HTTP 200 (or 201/204/208).
Send us the URL, username, and password at balikobot@balikobot.cz.
After activation on our side, verify that you receive the first notification.
Implement status processing in your system (match shipments via
eid).Set up fallback polling via TRACKSTATUS in case of undelivered webhooks.