Cancel shipment
PATCH REST API request for suppliers, requiring an authorization token, in order to cancel packing.
Request
HTTP Method | POST | |||||
URL | Stage | https://api.stage.ananastest.com/order/api/v1/supplier-integration/shipment/{shipmentId}/cancel | ||||
Production | https://api.ananas.rs/order/api/v1/supplier-integration/shipment/{shipmentId}/cancel | |||||
HTTP Headers |
|
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.