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

Better Data FieldTypeRequiredExampleDescriptionSource System Analog
skuIdstringYESSKU-001SKU key tied to catalog import.Item code / variant SKU
locationIdstringYESDC-WESTExternal location code.Warehouse / plant code
quantityOnHandnumberNo120Physical stock quantity, default 0.QOH
quantityReservednumberNo20Reserved stock quantity, default 0.Allocated quantity
reorderPointnumberNo40Minimum quantity threshold, default 0.Reorder point

Validation Rules

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

Common Errors

ErrorMeaningHow to fix
levels[] is requiredMissing inventory rows.Send { "levels": [ ... ] }.
skuId and locationId requiredA row is missing one or both keys.Provide both fields for every row.