Skip to main content
GET
/
parcel-documents
/
{type}
Retrieve multiple parcel documents
curl --request GET \
  --url https://panel.sendcloud.sc/api/v3/parcel-documents/{type} \
  --header 'Authorization: Basic <encoded-value>'
"<string>"
Sendcloud generates the correct type of document for your shipment when you Create a parcel, provided that you have filled in all the information related to the parcel contents, value and invoice. Use this endpoint to retrieve these documents in bulk. This endpoint supports the following document types:
  • label
  • customs-declaration
  • air-waybill
For international shipments, customs declaration must be attached (either physically or digitally for some carriers) to the shipment for customs officials to access.

Authorizations

Authorization
string
header
required

Basic Authentication using API key and secrets is currently the main authentication mechanism.

Path Parameters

type
enum<string>
required

Document type you want to retrieve.

Available options:
label,
customs-declaration,
air-waybill
Example:

"customs-declaration"

Query Parameters

parcels
integer[]
required

Parcels for which you want to retrieve the documents

Required array length: 1 - 20 elements
Example:
[1, 2, 3]
paper_size
enum<string>

The paper size of the document you would like to retrieve. Paper size can be one of:

  • A4
  • A5
  • A6

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.

Available options:
A4,
A5,
A6
Example:

"A4"

Response

Requested parcel document files of a specific type.

The response is of type file.