Update stock quantities
update_stocksUpdate stock quantities for one store. Use modify to adjust existing stock, or initialize for first-time stock load.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"store_id": "<store_id>",
"stocks": "<stocks>"
},
"name": "update_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. |