Skip to content

Cancel a restocking shipment

Request

Cancels a restocking shipment whose status is created, shipped, delivered, arrived or on_hold. In any other status the cancellation is answered with 422 Unprocessable Entity.

Security
BearerAuth
Path
idinteger, (int64)required

The Hive ID of the restocking shipment.

curl -i -X PUT \
  'https://hive-merchant-api.redocly.app/_mock/merchant-api-v1/mapi_v1_oas31/restocking_shipments/{id}/cancel' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

The restocking shipment was cancelled

Bodyapplication/json
Response
{}