Set stock level
update_stockDestructiveIdempotent
CHANGES STOCK COUNTS: sets (does not add to) the quantity on hand of one item in one shop to qoh, by updating the item's ItemShop record. Use for correcting a few items; for many items use an inventory count in Lightspeed. Identify the shop by shop_id, or by item_shop_id from get_item's ItemShops. Not for shopID 0 (the all-shops summary). PUT /Account/{accountID}/Item/{itemID}.json with ItemShops.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qoh | Yes | The new quantity on hand. | |
| item_id | Yes | The itemID. | |
| shop_id | No | The shopID whose stock to set (from list_shops). | |
| item_shop_id | No | Or the itemShopID of that item/shop record (from get_item ItemShops). |