Inventory models
The inventory model object and the allowed CRUD operations on the related resource endpoint
Last updated
The inventory model object and the allowed CRUD operations on the related resource endpoint
Last updated
An inventory model defines a list of ordered by priority. The priority and cutoff determine how the availability of SKUs gets calculated within a market.
The list of determines the availability of SKUs that are being purchased. The list of determines the available options for returns.
Multiple are available. You can select a specific one by setting the strategy
attribute accordingly, depending on how you want your order items to be fulfilled. An inventory model strategy is responsible to decide how many are generated and from which stock location each shipment will be shipped. Based on the selected strategy, if an order contains line items from two or more stock locations, the order can be split into two or more shipments, one for each location. from a stock location (e.g. secondary) to another (e.g. primary) can be created as well.
Draft (i.e. created before the order placement) have a default expiration date of 1 hour. You can override the default duration by setting the inventory model stock_reservation_cutoff
attribute to the desired value (expressed in seconds).
By default as soon as an is approved the related quantities are decremented and all the involved cancelled. If you need to manually manage the stock decrementation and the concomitant stock reservation cancellation at any time after the order approval, you can override this behavior by setting the manual_stock_decrement
flag to true
.