Skip to main content

Overview

Inventory import sets on-hand and reserved quantities for SKU/location pairs. The endpoint also creates missing product and location records when needed.

Quick Start

  1. Build a levels[] payload with one row per SKU/location.
  2. POST to /api/import/inventory.
  3. Poll /api/import/status/[jobId] for processed and failed counts.

Field Reference

Validation Rules

  • levels[] must be present and non-empty.
  • Each row requires skuId and locationId.
  • qtyAvailable is computed as quantityOnHand - quantityReserved.

Common Errors