Checkpoints
Our API allows you to retrieve the current status of a tracking or order with ease.
Get Checkpoints
Details of how the v2/checkpoints
endpoint can be used to retrieve the checkpoints for a tracking in the parcelLab system are described below.
The return of a successful call of this endpoint gives a 200 OK
status code and a JSON encoded response object. This object consists of a header
and body
.
Return Header
The header
is an array that provides an overview of all trackings returned. When requesting the API with a combination of courier
and tracking_number
, the array will always have header.length === 1
.
The details of the header for each tracking are described in the following table.
id
String
The ID of the tracking which serves as the key in the body
.
tracking_number
String
The tracking number of the tracking.
delay
Boolean
Whether a delay of this delivery has been detected by parcelLab.
exception
Boolean
Whether an escalated problem has been detected by parcelLab.
Courier Object
The details of the courier object for each tracking are described in the following table.
name
String
The courier code (for example: dhl-germany
).
prettyname
String
The display name of the courier (for example: DHL
).
trackingurl
String
The URL of the courier's own tracking page.
trackingurl_label
String
The localized label of the trackingurl
.
hide_trackingurl
Boolean
Whether to hide the tracking URL.
rerouteurl
String
The URL of the courier's own tracking page in case the recipient reroutes the order.
rerouteurl_label_short
String
The localized short label of the rerouteurl
.
rerouteurl_label_long
String
The localized long label of the rerouteurl
.
rerouteurl_label_info
String
The localized information regarding the rerouteurl
.
destination_courier
Object
Information regarding the final courier handling the parcel.
Last Delivery Status Object
The details of the last delivery status object for each tracking are described in the following table.
status
String
A short description of the current status of the delivery.
status_details
String
A detailed description of the current status of the delivery.
code
String
The applicable parcelLab status code.
Return Body
The body
is an object that provides an array of checkpoints for each tracking (identified by their id
) in the header.
The details of the array for each tracking are described in the following table.
shown
Boolean
Whether the checkpoint has been marked as unclear by parcelLab.
Note: Checkpoints provided by the courier which are unclear and do not help the recipient to understand the current status of the delivery are automatically filtered.
status
String
The applicable parcelLab status code.
status_text
String
A short description of the current status of the delivery.
status_details
String
A detailed description of the current status of the delivery.
full_courier_status
String
The full status code provided by the courier for reference.
Note: This is not recommended to display to the recipient.
location
String
The location of the checkpoint if available; otherwise an empty string ""
is returned.
Get Tracking Details
Details of how the v2/tracking-details
endpoint can be used to retrieve the details of a tracking in the parcelLab system are described below.
The additional details in the action box are type-specific (for example: if the tracking.actionBox.type === 'pickup-location'
, the action box will also feature a new key with the openingHours
).
The variations available are described in the following sections.
Type prediction
prediction
For a prediction, a sub document is included with the scheduled delivery date. This is displayed in the format below.
"actionBox": {
"type": "prediction",
"label": "Estimated Delivery:",
"prediction": {
"label": "Estimated Delivery:",
"type": "prediction",
"timeCaption": "",
"dateOfMonth": "21",
"dayOfWeek": "Saturday",
"month": "December",
"caption": "The delivery has been announced by DHL.",
"startTime": "11:30",
"endTime": "13:30"
}
}
Type pickup-location
pickup-location
For a delivery to be collected, a sub document is included with the opening hours. This is displayed in the format below.
"actionBox": {
"type": "pickup-location",
"address": "Kurfürstenplatz 8, 80796 München",
"openingHours": [
{
"close": {
"day": 1,
"time": "1800"
},
"open": {
"day": 1,
"time": "0800"
}
},
...
]
},
Get Sender Information for a Tracking
Details of how the sender
endpoint can be used to retrieve sender information for an order or tracking in the parcelLab system are described below.
Get Article List of a Tracking
Details of how the v2/checkpoints
endpoint can be used to retrieve the article list for an order or tracking in the parcelLab system are described below.
Get Notifications of a Tracking
Details of how the v2/notifications
endpoint can be used to retrieve all notifications for a tracking in the parcelLab system are described below.
Last updated
Was this helpful?