Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


title
Info

Warning!

Resource available only in the following countries: PL, IT

Cancellation of a shipment.

PanelbgColor#f0f0f0


titleBGColor#f0f0f0title

On this page

Table of Contents
minLevel2
 

Authentication

Access to the resource requires a valid valid access token.



Shipment Cancellation

(info)
Info

In order to cancel a shipment within an

organisation

organization, the user has to be its member. Additionally, the shipment has to be in created or offers_prepared status, otherwise an invalid_action  error will be returned.

Code Block
languagejson
DELETE /v1/shipments/:id

Example request

Code Block
languagejson
curl -X DELETE https://api-shipx-pl.easypack24.net/v1/shipments/1 -H 'Authorization: Bearer token' -H 'Content-Type: application/json'

Response

Code Block
languagejson
HTTP/1.1 204: No Content
Warning

Error information

  • invalid_action - wrong shipment status