import_supply_chain
Import the PRODUCT table of the Supply chain page of ONE account — the same lines as the page's file (2026-10-22): one line per product × warehouse, carrying at most one supplier order (N open orders = N lines, the count and the six numbers repeated): the count at the warehouse / 3PL with its date, an order (units, expected date, PO reference, status), the case pack, the target stock at Amazon and at the warehouse, the transit to Amazon and to the warehouse, the production lead time. The payload changes the lines it names and NOTHING else: a field you omit keeps what is stored, null clears it (a count becomes unknown, an override is removed and the warehouse's number shows again), an order closes with status 'received' / 'cancelled' on its reference; the six numbers are the product's (its 'ALL' line), the same in every warehouse. The count's location and note are not here. On a line straight from the factory (get_supply_chain_products: warehouse.straightFromFactory) there is no warehouse: the count, the transit to the warehouse and the target there are not applied (a null there clears nothing) and the preview returns a notice for the row; put the whole trip, factory to sellable at Amazon, in leadTimeTransitDays. TWO-STEP, never skip the preview: call WITHOUT commit; the server validates (ASINs against the catalog, regions or warehouse names, ranges, dates) and returns per-row warnings, a per-warehouse diff (added lines with their values, changed lines before → after, removed, the warehouse's totals once written) and a confirmationToken; show them to the user and only after explicit approval call again with the SAME account/rows plus commit:true and the token. Up to 2000 rows per call. Requires the OAuth connection and the OWNER role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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. |