Cancel shipment

PATCH REST API request for suppliers, requiring an authorization token, in order to cancel packing.

Request

HTTP MethodPOST
URLStagehttps://api.stage.ananastest.com/order/api/v1/supplier-integration/shipment/{shipmentId}/cancel
Productionhttps://api.ananas.rs/order/api/v1/supplier-integration/shipment/{shipmentId}/cancel
HTTP Headers
Header nameHeader value
AuthorizationBearer {access_token}

Error Response

There are two scenarios where the endpoint will return a status of 4xx:

  • If shipment does not exist, or if it does not belong to the supplier - 404
  • If shipment is already processed it cannot be cancelled - 400

Success Response

The endpoint will return status 204 - No Content.

Copyright © Ananas 2023. All right reserved.