Inventory API

Endpoints

GET/inventoryList stock levels
POST/inventory/adjustAdjust stock quantity
POST/inventory/transferTransfer between warehouses

List inventory - GET /inventory

ParameterDescription
warehouse_idFilter by specific warehouse
low_stockOnly show items with quantity < 10
page, per_pagePagination

Adjust stock - POST /inventory/adjust

Set the absolute quantity for a product in a warehouse. This records a stock movement with type 'adjustment'.

FieldTypeRequired
product_idUUIDrequired
quantityNumberrequired
warehouse_idUUIDoptional
reasonStringoptional
POST /inventory/adjust
{
  "product_id": "a1b2c3d4-...",
  "quantity": 250,
  "warehouse_id": "wh-uuid",
  "reason": "Restocked from supplier order #PO-144"
}

Transfer stock - POST /inventory/transfer

Move stock between warehouses. Validates sufficient source quantity before transferring.

FieldTypeRequired
product_idUUIDrequired
from_warehouse_idUUIDrequired
to_warehouse_idUUIDrequired
quantityNumberrequired