Products & Inventory
Manage products, track inventory levels, and sync stock across channels. Products appear in invoices, POS, and sales orders.
List Products
GET/api/v1/products
| Parameter | Type | Description |
|---|---|---|
search | string | Search by name or SKU |
type | string | Filter: product, service, bundle |
status | string | Filter: active, inactive |
lowStock | boolean | If true, returns only items at or below reorder level |
categoryId | string | Filter by category |
Response
{
"data": [
{
"_id": "65f1a2b3c4d5e6f7a8b9c0d1",
"name": "Wireless Mouse",
"sku": "WM-001",
"type": "product",
"sellingPrice": 85.00,
"costPrice": 45.00,
"currentStock": 23,
"reorderLevel": 10,
"trackInventory": true,
"status": "active"
}
],
"total": 89
}Create Product
POST/api/v1/products
| Parameter | Type | Description |
|---|---|---|
namerequired | string | Product name |
skurequired | string | Unique SKU (auto-uppercased) |
type | string | product (default), service, or bundle |
sellingPricerequired | number | Selling price |
costPrice | number | Cost price (for COGS calculation) |
currentStock | number | Initial stock level |
reorderLevel | number | Low stock alert threshold |
trackInventory | boolean | Enable stock tracking (default: true) |
categoryId | string | Product category ID |
taxRate | number | Default tax rate % for this product |
unit | string | Unit of measure (pcs, kg, hrs, etc.) |
Get, Update and Delete
GET/api/v1/products/:id
PUT/api/v1/products/:id
DELETE/api/v1/products/:id
Each product carries its stock level (currentStock) and reorderLevel. Stock moves with the documents that move it (bills, invoices, sales receipts); stock counts and adjustments are made in SyncBooks.