Versions Compared

Key

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

...

Code Block
languagebash
curl --request GET --url https://staging-ws.di.no/ws/json/parcel/label/v-1/labels/00370724760010119754/unified-large \
     --header "authorization: Bearer $SECRET_WS_TOKEN" \
     --header 'content-type: application/json' \
	 --header 'accept: application/pdf,application/json' \

Response

Info

General notes for API response

The API will respons with a file in the specified file format.

  • If a shipmentId is specified the response will return a file containing one page pr. item for that shipment.

  • If trackingReference is specified the response will return a file containing one page for that item

  • ZPL labels measures 4x9 inches ( 101,6mm x 228,6 mm)

  • Response time for ZPL format is significantly slower than other formats

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.

...