v1
latestOpenAPI 3.1.02026-07-2296226496.3 KBOrder
Get order documents
Retrieve documents associated with an order such as shipping labels or proof of delivery. Set load_data=true to include the document content in the response.
get/v1/order/{id}/documents
Path parameters
idstring required
Unique reference number for the order: either order.id (starts with "ord_") or order.externalId
Example:ord_1234567890
Unique reference number for the order: either order.id (starts with "ord_") or order.externalId
Query parameters
loadDataboolean required
Whether to load the document data and return it as part of the response.
Whether to load the document data and return it as part of the response.
Response
OK
Example response
[
{
"createdAt": "2023-08-29T19:17:46.264523",
"id": "doc_1234567890",
"contentType": "application/pdf",
"url": "https://example.com/document.pdf",
"data": "SGVsbG8gd29ybG="
}
]