Skip to main content

GET /labels/{orderId}

List available label types for an order, with download URLs on this API.

Scope: shipments:labels or shipments:create

Path parameters

NameRequiredDescription
orderIdYesOrder UUID from ship metadata.orderId

Request body

None.

Preconditions

  • Order exists.
  • order.companyId matches the API key organization.

Each available label type includes a download URL on this API.

Success response (200)

{
"data": {
"orderId": "uuid-order-id",
"available": [
{
"code": "PDF",
"name": {
"en": "PDF",
"fr": "PDF"
},
"url": "https://api.saveonexpress.ca/integrations/public-api/v1/labels/uuid-order-id/PDF"
},
{
"code": "COMINV",
"name": {
"en": "Commercial Invoice",
"fr": "Commercial Invoice"
},
"url": "https://api.saveonexpress.ca/integrations/public-api/v1/labels/uuid-order-id/COMINV"
}
]
}
}
FieldTypeDescription
orderIdstringOrder UUID
availablearrayLabel types for this order
available[].codestringLabel type code (use in path for download)
available[].nameobjectLocalized display name (en, fr)
available[].urlstringGET this URL (with X-API-Key) to download or generate the label

Common code values (carrier-dependent): PDF, ZPL, ZPLPDF, COMINV, RETINV, PACKSLIP, BOL, MANIFEST, and others returned by the carrier label service.

Error responses

HTTPCondition
400Missing orderId
401API key auth failure
403Missing scope, or order belongs to another company
404Order not found
500Label service error