Download label (PDF)

Returns the PDF label of your order. The label can be obtained as long as the order is not cancelled and label_available is true.

GET /shipments/{id}/label

Parameters

NameTypeRequiredDescription
id string yes Order number or tracking number (in the address).

In the address {id} is the order number (field id from the response) or tracking number.

Important to know

Request example

curl -o label.pdf https://api.shippickup.com/v1/shipments/4f2a9c1e7b3d48a6c5e0f1d2b3/label \
  -H "Authorization: Bearer $SHIPPICKUP_API_KEY"

Response example 200

HTTP
HTTP/1.1 200 OK
Content-Type: application/pdf
Content-Disposition: attachment; filename="label-4f2a9c1e7b3d48a6c5e0f1d2b3.pdf"
Cache-Control: private, no-store

%PDF-1.4 ...

Possible errors

HTTPCodeDescription
404not_foundObject not found among your account's objects (order, address, invoice, webhook, member, or team invitation), or the order has no active pickup, or the method does not exist. Objects belonging to others appear as non-existent.
409conflictAction is currently not possible for this order (e.g., order cannot be canceled or pickup already ordered). Reason text in error.message.
403insufficient_scopeKey lacks the required permission, specified in error.details.required_scope.
429rate_limitedKey request limit exceeded. Retry after the time specified in the Retry-After header.

Full list of error codes →