Returns the stored label without printing anything. Send Accept: application/pdf (or application/zpl, application/octet-stream) to get the file itself instead of JSON; the tracking numbers then come in the X-Tracking-Numbers header.
GET
/labels/order/{orderId}
curl \
--request GET 'api.services.omnicado.com/api/v2/labels/order/1843311' \
--header "X-OMNICADO-TOKEN: $API_KEY"
Response examples (200)
{
"orderId": 1843311,
"reference": "ESHOP-2026-004211",
"carrier": "packeta",
"labelFormat": "pdf",
"trackingNumbers": [
"Z1234567890"
],
"trackingUrl": "https://tracking.packeta.com/cs/?id=Z1234567890",
"cancelled": false,
"label": {
"contentType": "application/pdf",
"content": "JVBERi0xLjQK..."
}
}
Response examples (404)
{
"error": "Carrier ppl is not installed on this account",
"code": "carrier_not_installed"
}