The API provides a list of future distribution dates that have coverage for a parcel.
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Setup
Make sure you have the following information at hand before proceeding.
...
Name | Example | Description | |
---|---|---|---|
identifier | 70724761617883184 | Can (401)70712190172720651 / (00)370123460120012952 | Identifier can be either a trackingReference or a shipmentId. |
...
Name | Example | Description |
---|---|---|
limit | 10 | Optional. Number of days for distribution. [1, 30] 14 days is the default if not provided. |
Curl request example
Code Block |
---|
curl --location --request GET 'https://ws.di.no/ws/json/parcel/booking/v-1/distribution/70724761617883184/dates?limit=7' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer $SECRET_WS_TOKEN' |
...
Expand | ||
---|---|---|
| ||
|
Error handling
API requests that result in errors will return an appropriate HTTP status code to help you identify the type of error. You can use the table below to understand what each code means. og search online with the HTTP status code. The HTTP error keys used are based on the standard, and therefore available online (Tips to search “HTTP code XXX”)
...