Skip to main content

Cancel shipments in bulk

PATCH
/api/v1/shipments/cancel

Cancels the caller's own shipments in bulk. The action is recorded in the shipment history and event tables.

Scope comes from your credentials, not the request. A subAccountId in the body is ignored. If any AWB in the list falls outside your scope the whole request is rejected with 403 and nothing is cancelled.

CredentialScope
API key bound to a sub-accountthat sub-account only
API key with no sub-account bound403 — issue a key for the sub-account it should act on
Logged-in userthe sub-accounts they are a member of, plus those under their main account

Request​

Responses​

200 OK

Shipments canceled successfully

400 Bad Request

Bad Request

401 Unauthorized

Unauthorized

403 Forbidden

One of the AWBs falls outside your scope, your account is not linked to any sub-account, or the API key used is not bound to a sub-account.

500 Internal Server Error

Internal Server Error