...
key | value example | comment |
---|---|---|
identifier | (00)370724760010119754 | can be either a trackingReference or a shipmentId. If a shipmentId is specified the resulting pdf can return a pdf containing several pages (one for each item) |
labelType | unified-large | What kind of label that is wanted. The type determines both layout and size of the label. Currently the following types are supported *:
|
...
Code Block | ||
---|---|---|
| ||
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
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
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.
...