Retrieve a specific document for a given parcel, and download it in your preferred format and resolution.
labelcustoms-declarationair-waybillBasic Authentication using API key and secrets is currently the main authentication mechanism.
The returned format of the document.
Note: If a label is requested as native ZPL from the carrier it can't be converted to another format and will always be returned in ZPL.
application/pdf, application/zpl, image/png "image/png"
Identifier of the parcel which you want to retrieve a document from
x >= 11
Document type you want to retrieve.
label, customs-declaration, air-waybill "customs-declaration"
DPI, or dots per inch, refers to the printing resolution of your shipping labels. Labels must be printed at a high enough resolution to ensure the clarity of address details and the barcode for scanning purposes.
Use the following table to find the appropriate DPI for each file format:
| File format | Default DPI | Valid DPI |
|---|---|---|
| 72 | 72 | |
| png | 300 | 150, 300 |
ZPL labels are not affected by the DPI setting, as the resolution is determined by the carrier itself. Most carriers use a resolution of 203 DPI. Zebra printers need to be configured to print at the specific DPI of the label if they have higher resolution capabilities.
72, 150, 203, 300, 600 x >= 1300
The paper size of the document you would like to retrieve. Paper size can be one of:
Omitting this query parameter leads to the internal paper size of the document being used. Generally this is A6 for labels and A4 for larger documents, like customs documents.
A4, A5, A6 "A4"
Requested parcel document file
The response is of type file.