Skip to main content

Upload Inventory File

POST 

/api/supplier-portal/inventory/upload

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.

Buyer portal token

Called by a B2B portal buyer with the bearer token POST /api/portal/auth/login returns (or the buyer's feed key) — not with a staff Personal Access Token.

Status needs_mapping means the SKU or quantity column could not be identified: send a mapping with Map Inventory Upload Columns. Any earlier un-committed preview is discarded. Returns 404 when the merchant has switched the supplier's inventory feed capability off.

Authentication: supplier-portal bearer token. Every lookup is scoped to the signed-in user's supplier; a record of another supplier returns 404.

Request​

Responses​

Created

Response Headers
    Content-Type