I’m trying to ship a sales order via the REST API. This involves…
- Creating the shipment record
- Updating the quantities on the shipment
- Confirming the shipment
- Updating IN
The actual quantity to ship comes from our internal custom WMS site, outside of and integrated with Acumatica. Typically, the SO line item will have a linked Production Order. When recording multiple Move transaction on the Prod order, the resulting Shipment will have multiple lines for the same item.
We rarely ever ship exact. Depending on how production was recorded whether we had some extra pieces in stock already, the actual quantity to ship will frequently be different than the quantity ordered or allocated or produced.
Admittedly, I don’t fully understand how the “allocated” calculations fit into all of this, or how they are determined based on quantity ordered and production quantities. No matter what I try via the API, I run into the error of “quantity shipped is greater than the quantity allocated” when trying to create/update the Shipment record. I even attempted the method of extending the web service endpoint found here.
But the ultimate goal is to create and process a Shipment record that “ignores” (or overrides?) anything prior. Really, the only two guardrails I’m concerned with are…
- Do we have enough “On Hand” in inventory at this warehouse?
- Does the quantity to ship fall within the Undership/Overship Threshold %?
How can I accomplish this? Can I completely remove any allocations prior to creating the shipment? What are the implications of the linked production order and Move trx?
Thanks!



