Query stock levels
query_stocksQuery stock feed across stores to obtain product quantities and shelf types. Use cursor pagination to iterate until the feed is exhausted for a full inventory snapshot.
Instructions
Cursor-based stock feed across stores (POST /b2b/v1/stocks/query). Returns {stocks: [{product_id, quantity, shelf_type, store_id}], cursor}; iterate until a page has fewer items than limit for a full snapshot. Known shelf_type values (open-ended): store, markdown, incoming, out, trash, lost, found, office, parcel, parcel_returned, collection, cargo, repacking, review, kitchen_on_demand, kitchen_components, kitchen_trash, kitchen_lost, kitchen_found. Sellable stock normally lives on shelf_type "store".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Page size (default 100 — the official client's value; the server-side maximum is undocumented). | |
| cursor | No | Opaque cursor from the previous response of this tool. Omit it for the first page; the feed is exhausted when a page comes back with fewer items than `limit`. |