Amazon Services
Amazon Marketplace Web Service (Amazon MWS) Documentation

Deprecation Notice:

Amazon Marketplace Web Service (MWS) will no longer be available after March 31, 2024. All MWS developers must migrate to Selling Partner API (SP-API) to avoid service disruptions. Refer to the Migration Hub for more information.

Amazon MWS Documentation

How to cancel a shipment

This shows how to add functionality to the workflow described in How to fulfill Seller Fulfilled Prime orders.

To cancel a shipment

  1. Call the CancelShipment operation, specifying the ShipmentId value of the shipment to be canceled.
  2. (Optional) Check the status of the canceled shipment. See the following procedure.

To check the status of a canceled shipment (optional)

  1. Call the GetShipment operation, specifying the ShipmentId value of the canceled shipment.
  2. Get the cancellation status from the Status element returned by the GetShipment operation.

Errors

The service returns the LabelCancelWindowExpired error if the window for canceling a label has expired. See Error codes.