Inventory Feed Uploads
Upload Inventory File
Stores and validates a CSV/XLSX stock file (max 10 MB, 20,000 rows) into a preview; nothing is written yet. Columns are auto-mapped from your saved mapping, then from common header names. Rows match your SKU first, then the buyer's product SKU. Zero or negative quantities become 0 and out of stock. SKUs absent from the file are untouched unless `full_snapshot` is on, which sets them to 0 in the warehouses the file covers. Cost columns never change prices; they become a catalog proposal at commit.
Map Inventory Upload Columns
Re-validates the stored file of an open preview (status needs_mapping or previewed) with a new column mapping and/or snapshot choice. Returns 404 when the merchant has switched the supplier's inventory feed capability off.
Commit Inventory Upload
Writes the matched rows. Up to 200 matched rows run inline (200, finished run); more run in the background (202, status processing) - poll Get Inventory Feed Run every few seconds and read `progress`. Saves the column mapping for the next upload unless `save_mapping` is false. Returns 404 when the merchant has switched the supplier's inventory feed capability off.
Discard Inventory Upload
Discards an open preview. 409 when the run is no longer a preview. Returns 404 when the merchant has switched the supplier's inventory feed capability off.
List Inventory Feed Runs
Run history of every mode (upload, URL pull, SFTP pull, API push), newest first. Discarded previews are hidden; `columns` and `preview` are empty in lists. Returns 404 when the merchant has switched the supplier's inventory feed capability off.
Get Inventory Feed Run
One run with its detected columns and preview rows (first 200 plus every quarantined row, max 500). Use it to poll a background commit. Returns 404 when the merchant has switched the supplier's inventory feed capability off.
Download Inventory Feed Run Errors
CSV of the quarantined rows: row number, the file's own columns and the reason. Fix and re-upload it. Returns 404 when the merchant has switched the supplier's inventory feed capability off.