Retrieve a document for a given parcel by providing the parcel id and document type.
For international shipments, a commercial invoice, CN23 or CN22 (+CP71) form must be attached (either physically or digitally for some carriers) to the shipment for customs officials to access. The type of document required depends on the shipping method and value of the shipment. When you use the Create a parcel or parcels endpoint, Sendcloud generates the correct type of document for your shipment if you have filled in all the information related to the parcel contents, value, and invoice. Use this endpoint to retrieve these documents in your preferred format. The supported document types are as follows:Documentation Index
Fetch the complete documentation index at: https://sendcloud.dev/llms.txt
Use this file to discover all available pages before exploring further.
air-waybillcn23cn23-defaultcommercial-invoicecp71labelqrBasic Authentication using API key and secrets is currently the main authentication mechanism.
The returned format of the document
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 for this parcel
air-waybill, cn23, cn23-default, commercial-invoice, cp71, label, qr "commercial-invoice"
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.
Requested parcel document file
The response is of type file.