Removes the label and the tracking from the order. The shipment is cancelled with the carrier for PPL, GLS, TopTrans, DPD SK, SPS, Alza and Allegro. For Packeta, DPD, WeDo and One by Allegro only the stored label is removed and the parcel stays registered with the carrier; cancel it in the carrier's administration.
DELETE
/labels/order/{orderId}
curl \
--request DELETE 'api.services.omnicado.com/api/v2/labels/order/1843311' \
--header "X-OMNICADO-TOKEN: $API_KEY"
Response examples (200)
{
"orderId": 1843311,
"cancelled": true
}
Response examples (404)
{
"error": "Carrier ppl is not installed on this account",
"code": "carrier_not_installed"
}
Response examples (409)
{
"error": "Carrier ppl is not installed on this account",
"code": "carrier_not_installed"
}
Response examples (502)
{
"error": "Carrier ppl is not installed on this account",
"code": "carrier_not_installed"
}