Versions Compared

Key

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

...

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

...