import_supplier_orders
DEPRECATED (2026-10-22): use import_supply_chain (orderUnits, expectedOn, reference and status per line, one line per order); this tool stays for callers that still use it. Import the SUPPLIER ORDERS of ONE account — the seller's purchase orders on ITS supplier (not Amazon Vendor POs), per product × stock region: the fifth rung of the ladder, what query_inventory returns as onOrderUnits / nextExpectedAt and counts in coverageTotal / recommendedOrderQty. Only OPEN lines count; 'received' and 'cancelled' are history. TWO-STEP like import_stock_params: preview WITHOUT commit (warnings + per-region diff + confirmationToken), show the user, then commit with the token. Mode 'merge' (default): a line WITH a reference updates the line of the same (product, region, reference) — re-send it with status 'received' when the goods land —, the lines WITHOUT a reference restate the OPEN unreferenced book of their (product, region) — re-sending them is safe, received / cancelled lines untouched; 'replace' restates the OPEN order book of every (account, region) present in rows (open lines absent from rows are deleted, history untouched) and accepts status 'open' only. Up to 2000 rows per call. Requires the OAuth connection and the OWNER role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'merge' (default): a referenced line updates its namesake; the unreferenced lines of a (product, region) replace its open unreferenced ones. 'replace': restate the OPEN book of 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. |