CancelShipment Method
Cancels a shipment.
Syntax
[VB.NET] Public Sub CancelShipment(ByVal ShipmentId As String)
[C#] public void CancelShipment(string shipmentId);
Remarks
This method cancels a shipment. The ShipmentId parameter is the value returned by the ShipmentId field when GetPackageLabel was called.
Note: This is only valid for shipments created using a contract (e.g. when ContractId is specified) and must be called before TransmitShipments has been called for the specified shipment;
NOTE: This method has a corresponding asynchronous version (CancelShipmentAsync) for use in the WinRT environment.