Retrieve parcel documents
Retrieve a document for a given parcel by providing the parcel id and document type.
air-waybillcn23cn23-defaultcommercial-invoicecp71labelqr
Authorizations
Basic Authentication using API key and secrets is currently the main authentication mechanism.
Headers
The returned format of the document
application/pdf, application/zpl, image/png "image/png"
Path Parameters
Identifier of the parcel which you want to retrieve a document from
x >= 11
Document type you want to retrieve for this parcel
air-waybill, cn23, cn23-default, commercial-invoice, cp71, label, qr "commercial-invoice"
Query Parameters
DPI refers to the printing resolution of your shipping labels. It's important that labels are printed at a high enough resolution to ensure the clarity of address details and the barcode for scanning purposes. Use following amounts for appropriate result:
| File format | Default DPI | Valid DPI |
|---|---|---|
| 72 | 72 | |
| png | 300 | 150, 300 |
72, 150, 203, 300, 600 x >= 1300
There have been identified cases where custom documents, internally rendered, will only include some of the necessary information, mainly due to some restrictions. Using the raw query param, one can request to receive the document in the originally received format by the carrier. This temporary solution to the problem allows the normal operations of the affected customers. As such, you can expect this property to be sunsetted shortly once the necessary changes have been implemented.
Response
Requested parcel document file
The response is of type file.