Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The API provides a list of future distribution dates that have coverage for a parcel.

Table of Contents
minLevel1
maxLevel6
outlinefalse
stylenone
typeflat
printablefalse

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
titleExample response 1
Code Block
{
    "distributionDates": [
        "2024-03-0708",
        "2024-03-0809",
        "2024-03-0911",
        "2024-03-1112",
        "2024-03-1213",
        "2024-03-1314"
    ]
}

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”)

...