Stock transfers
The stock transfer object and the allowed CRUD operations on the related resource endpoint
Last updated
The stock transfer object and the allowed CRUD operations on the related resource endpoint
Last updated
An order can be configured to ship from a specific only (e.g. primary). In this scenario, the number of shipments is minimized by creating one or more stock transfers from the stock location where the items are available to the primary one. are still honored, by creating different shipments.
Stock transfers can also be created outside of the order scope. In this case, they have no relationships with and .
Stock transfers are created in draft
status and are moved to upcoming
as soon as the order associated with the related shipment is placed. At this stage, the necessary stock reservations are created to eventually allow (the stock will be then actually decremented when the stock transfer is completed). If stock transfers are involved, when the order fulfillment process starts all the related shipments are moved to the on_hold
status and the related stock transfers status becomes picking
(if you want to change the default behavior and put also all the stock transfers on_hold
, set the put_stock_transfers_on_hold
attribute to true
at the level — you'll then need to manually manage the subsequent status changes). When a shipment is cancelled all the associated stock transfers are also moved to the cancelled
status.
To avoid dealing with incomplete stock transfers, make sure to move them to completed
before the related order approval (or before the moment when you decide to decrement the stock in case you have chosen to do it manually by setting the related flag at the level).
Unless a stock transfer is completed or cancelled and provided that there is enough origin stock availability to allow the change, you can update the stock transfer's quantity using API credentials. On successful update, the associated stock reservation will be destroyed and a new one will be created based on the new quantity.