Export stock CSV
hub_export_stock_csvThe stock export file for ONE outlet, as CSV text: Variation ID, Product Name, Variation name, SKU, Stock Management, Cur Qty, New Qty. Use it when the merchant asks for the stock sheet itself — a stocktake worksheet, a hand-off to a supplier, 'give me my stock as CSV'. For stock QUESTIONS — how many of X are left, what is running out, history of a change — use get_stock, find_low_stock and get_stock_history: they filter on the server and explain when tracking is switched off. This dump includes untracked rows and cannot tell "zero" apart from "not counted here". It is READ-ONLY: to write counts back, edit the New Qty column and send the file to import_stock_csv. Large catalogues are truncated — the reply reports the true row count.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxRows | No | Data rows to return, default 200, max 2000 | |
| outletId | Yes | Outlet id from get_outlets — not a store name | |
| statuses | No | Restrict to these product statuses | |
| categoryIds | No | Category ids from get_categories | |
| productTypes | No | Restrict to these product types |