set_stock_defaults
Set ONE account's numbers of the TOP table of the Supply chain page — the warehouse & 3PL setup: per warehouse (its stock region, or its name as get_setup domain=supply_chain lists it) the transit to Amazon, the target stock at Amazon, the target stock at the warehouse and the transit from the factory; per account (region 'ALL') the production lead time; and the factory lines (goods straight from a country to a territory). These are ranks 3 and 4 of the ladder, above the fleet default (rank 5, Nova's number, the page's gold figure) and below the product's own lines (import_supply_chain): a value set here reaches every product without its own number. Fields you omit keep their current value, null clears one; when a line's numbers end up blank its row is deleted. Give ONE region at the top level (the form of before 2026-10-22), or rows (several regions or warehouses at once) and / or factoryLines. TWO-STEP: call WITHOUT commit to preview current → new per parameter, show the user, then commit with the confirmationToken. Requires the OAuth connection and the OWNER role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | Several lines of the top table at once: one per region or warehouse, with the fields to change. | |
| commit | No | Omit/false = preview (no write). true = write; requires the confirmationToken from the preview. | |
| reason | No | One sentence, ALWAYS IN ENGLISH (regardless of the conversation language), on WHY you are making this call — the user question or your analytical goal. Recorded so the seller can see how their data is used. | |
| region | No | A stock region as get_setup domain=stock lists them ('USA', 'EU_FBA', 'UK', 'Canada'…; 'US', 'EU', 'GB' are accepted) or 'ALL' (every region without its own row). | |
| account | Yes | The seller account (seller_partner_id, or an unambiguous account name). | |
| factoryLines | No | The factory lines of the top table: one per (country, territory), with the fields to change. | |
| targetDaysAmazon | No | Days of cover to hold at Amazon (FBA + AWD). Omit = unchanged, null = clear. | |
| confirmationToken | No | The token the preview returned. | |
| targetDaysExternal | No | Days of cover to hold at the external location; 0 for sellers shipping straight to FBA. Omit = unchanged, null = clear. | |
| leadTimeTransitDays | No | Days in transit to the external location or to Amazon. Omit = unchanged, null = clear. | |
| leadTimeProductionDays | No | Days from the purchase order to the goods leaving the factory. Omit = unchanged, null = clear. | |
| leadTimeToWarehouseDays | No | Days from the factory to the warehouse / 3PL; 0 when the goods ship straight to Amazon. Omit = unchanged, null = clear. |