Update stock quantities
update_stocksUpdate or initialize stock quantities for a single store. Specify store ID and stock lines (max 1000) to write new quantities.
Instructions
Writes stock quantities for one store. mode=modify (default) POSTs /b2b/v1/stocks/update with update_mode "modify" (at most 1000 items per request); mode=initialize POSTs /b2b/v1/stocks/initialize for the first-time stock load of a store. The response body is not documented upstream (2xx = success) and is returned verbatim. Verify the result with query_stocks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | modify (default) — regular stock update; initialize — first-time stock load of a store. | |
| stocks | Yes | Stock lines to write (at most 1000 per request). | |
| store_id | Yes | WMS store id from get_stores. |