Stock API.
List Stock Levels
List all non-bundle stock levels for given warehouse. Stock levels have inventory information for a product at particular warehouse. This API does not include bundle stock levels.
in_stockis the current stock.bookedis the stock which is reserved for unfulfilled orders.availableis the current stock minus the booked stock.incomingis the stock which is pending to be received from purchase orders or stock transfers.
Raises
- ValidationError if either the warehouse or product is not provided.
query Parameters
available_maxavailable_minbooked_maxbooked_mincursorThe pagination cursor value.
in_stock_maxin_stock_minincoming_maxincoming_minis_below_thresholdAvailable + incoming stock is less than min level.
limitNumber of results to return per page.
oOrdering
product_id- Product id-product_id- Product id (descending)warehouse_id- Warehouse id-warehouse_id- Warehouse id (descending)in_stock- In stock-in_stock- In stock (descending)booked- Booked-booked- Booked (descending)incoming- Incoming-incoming- Incoming (descending)available- Available-available- Available (descending)
productProduct id. Either product or warehouse is required.
productsProduct ids separated by comma
warehouseWarehouse id. Either warehouse or product is required.
List Stock Levels › Responses
List Bundle Stock Levels
List all bundle stock levels. Each bundle product has a list of component stock levels.
How is bundle available stock calculated?
The available stock of a bundle is based on the lowest available stock of its components.
Each component in the bundle has a component_quantity which represents how many components are needed
to make 1 bundle product. Based on the available stock of component divided by the component_quantity
we can calculate the available stock of the bundle.
Raises
- ValidationError if warehouse not provided.
query Parameters
cursorThe pagination cursor value.
limitNumber of results to return per page.
oOrdering
product_id- Product id-product_id- Product id (descending)warehouse_id- Warehouse id-warehouse_id- Warehouse id (descending)
productProduct id
productsProduct ids separated by comma
warehouseWarehouse id. warehouse is required.
List Bundle Stock Levels › Responses
nextprevious