Inventory

Commit a bulk inventory import

POST
/api/v1/inventory/import/commit

Re-validates the file against mapping exactly as /preview did, then writes every row that passes: a new SKU creates its product and item (with an opening RESTOCK movement if a quantity was given); an existing SKU updates its policy fields only - never its stock count, which stays under Adjust Stock. Rows that fail validation are skipped, not partially applied, and one bad row never blocks the rest.

Authorization

HTTPBearer
AuthorizationBearer <token>

JWT access token

In: header

Query Parameters

merchant_id?|

Optional merchant to act on. Must be one you are a member of.

Formatuuid

Header Parameters

X-Merchant-ID?string|null

Request Body

multipart/form-data

file*unknown
mapping?string
Default""

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/inventory/import/commit" \  -F file="null"
{  "data": {    "created": 0,    "failed": 0,    "row_errors": [      {}    ],    "skipped": 0,    "total_rows": 0,    "updated": 0  },  "meta": {},  "success": true}