Versions Compared

Key

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


Cancellation of a shipment.


On this page

Table of Contents

Authentication

Access to the resource requires a valid access token.



Shipment Cancellation

Info

In order to cancel a shipment within an 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