Shipment cancellation



Cancellation of a shipment.


Authentication

Access to the resource requires a valid access token.




Shipment Cancellation

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.

DELETE /v1/shipments/:id

Example request

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

Response

HTTP/1.1 204: No Content

Error information

  • invalid_action - wrong shipment status