import_stock_params
DEPRECATED (2026-10-22): use import_supply_chain, the Supply chain table as one line per product and warehouse, which changes only the lines it names; this tool stays for callers that still use it. Import the REORDER PARAMETERS of ONE account — per product × stock region (or 'ALL'): production lead time, transit lead time to Amazon, lead time from the factory to the warehouse (leadTimeToWarehouseDays), target days of cover at Amazon and at the external location, case pack. A product needs all five to RESOLVE (its own row → its 'ALL' row → the account defaults) before query_inventory recommends anything; a blank field resolves to the next rank, so set the account-wide values with set_stock_defaults and import here only the exceptions. A seller shipping straight from the factory to FBA has an external target of 0 and a to-warehouse lead time of 0, not blank. TWO-STEP, never skip the preview: call WITHOUT commit; the server validates (ASINs against the account's stocked products, regions, ranges) and returns per-row warnings, an ASIN-grain diff per (account, region) and a confirmationToken; show them to the user and only after explicit approval call again with the SAME account/mode/rows plus commit:true and the token. Mode 'merge' (default) touches only the (ASIN, region) rows you send, FIELD by field — a field you omit keeps its current value, null clears it; 'replace' restates every (account, region) present in rows whole — a product absent from rows loses its row there, an omitted field is blank. A row with nothing on it is refused (an import never clears a row). Up to 2000 rows per call. Requires the OAuth connection and the OWNER role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'merge' (default): only the sent rows change. 'replace': restate each (account, region) present in rows. | |
| rows | Yes | ||
| commit | No | Omit/false = preview (validate + diff, 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. | |
| account | Yes | The seller account (seller_partner_id, or an unambiguous account name). One account per call. | |
| confirmationToken | No | The token the preview returned — proves the user saw exactly this payload. |