Troubleshooting
Problem
When an order is created with a regular item and a bundle item, consider the following scenario - 1. Schedule and Release the order 2. Create one shipment for both the lines During shipment confirmation, pass quantity as 0 for the bundle parent. Expectation - Shipment line should be cancelled but retained on the shipment and order for invoicing purpose Actual - Shipment remains in "Included in Shipment" with qty 0
Cause
For this use case, changeShipment should also be used to make the necessary changes.
Resolving The Problem
The solution is to call changeShipment to cancel the quantity prior to calling confirmShipment.
Call changeShipment using -
<Shipment CancelRemovedQuantity="Y"
CancelShipmentOnZeroTotalQuantity="Y"
SellerOrganizationCode="Matrix"
ShipNode="Matrix_WH1"
ShipmentKey="2016100616080921003" ShipmentNo="100000001">
<ShipmentLines>
<ShipmentLine Action="Cancel" ShipmentLineNo="1"/>
</ShipmentLines>
<Containers/>
</Shipment>
Here CancelRemovedQuantity and CancelShipmentOnZeroTotalQuantity helps ensure that the shipment is cancelled when all shipment lines have zero quantity. Using this , the shipment line moves to Cancelled status while being retained on the order for invoicing purpose
Call confirmShipment after this API call
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg22000365