improvement
Shipment Create Splits Shared SKUs and Update Checks the Warehouse Report
Two shipment mutations validate quantities differently. Check integrations that call either one.
orderShipmentCreate:
- A quantity for a SKU that several fulfillment items share is now split across those items. The items must be the same product and unit, and the quantity must fill exactly what they have left to ship.
- Before, each such quantity needed a
fulfillmentItemId. - A quantity that does not fill the items exactly is still refused.
orderShipmentUpdate:
- An edit that raises a SKU above what the warehouse reported now fails with
E_SHIPMENT_EXCEEDS_REPORT. The message names each SKU and the units over. - Lowering a quantity is always allowed.
allowExceedingFulfillmentdoes not bypass the check.- Shipments without a warehouse report, updates from integrations, and Mark fulfilled are not affected.
If your integration edits shipment items after a warehouse has reported, handle E_SHIPMENT_EXCEEDS_REPORT and stay within the reported quantities.