API Docs

Inventory

scope: inventory

The inventory system manages your products, carton definitions, stock levels, and warehouses. All inventory endpoints require the inventory OAuth scope.

Data Model

Inventory is organized around four core concepts that work together:

Products

The items you store and ship. Each product has a unique SKU within your organization. Products are the building blocks — they go inside cartons.

Cartons

Box configurations that contain products. A carton defines what's inside (product + quantity), its physical dimensions, and weight. These are the units that sit on warehouse shelves.

Stock Levels

Read-only aggregated counts showing how much inventory you have. Available as product-level totals or carton-level breakdowns per warehouse.

Warehouses

Physical locations where your inventory is stored. Warehouses are referenced when creating shipments and appear in stock level breakdowns.

How It Fits Together

Data Flow

ProductCartonWarehouseStock
  1. Create products in your catalog (e.g. "Egg Shells", SKU: ABC123)
  2. Define cartons that contain those products (e.g. "10-Pack Case" containing 10 units of Egg Shells)
  3. Stock is received into warehouses as cartons (managed by the warehouse team)
  4. Query stock levels to see how many units/cartons you have and where
  5. Create shipments that reference these cartons or products to move inventory out

Shipment Impact on Inventory

Pick & Pack

Opens cartons, picks individual units, repacks. Per-unit labor fees.

SubmitWarehouse picks & repacksStock deducted on forward
SPD

Ships full cartons as-is. No opening or repacking.

Stock deducted on submitWarehouse ships whole cartons

Endpoint Overview

The inventory API provides full CRUD for products and cartons, read-only stock level aggregations, and a warehouse listing endpoint.

ResourceOperationsScope
ProductsList, Get, Create, Update, Delete, Restoreinventory
CartonsList, Get, Create, Update, Delete, Restoreinventory
Stock LevelsProduct breakdown, Carton breakdown (read-only)inventory
WarehousesList (read-only)locations

Resources

Soft Delete & Restore

Products and cartons support soft-deletion. When you DELETE a resource, it's not permanently removed — it's marked as deleted and excluded from default list results.

BehaviorDetails
Delete preconditionResource must have zero stock across all warehouses
deletedAt fieldnull when active, timestamp when deleted
ListingDeleted items excluded unless includeDeleted=true
RestorePATCH /resource/:id/restore sets deletedAt back to null
Stock levelsDeleted products and cartons report 0 quantity in breakdowns

Stock must be zero to delete

You cannot delete a product or carton that still has inventory in any warehouse. Transfer or deplete all stock first, then delete. This prevents accidental data loss.