Products API
Endpoints for managing products and variants.
List Products
GET /v1/productsQuery Parameters
| Parameter | Type | Description |
|---|---|---|
page | integer | Page number (default: 1) |
per_page | integer | Results per page (max: 100) |
search | string | Filter by name or SKU |
location_id | string | Filter by location |
Response
{
"data": [
{
"id": "prod_01HX3K",
"name": "Wireless Mouse",
"sku": "WM-001",
"stock": 142,
"unit": "pcs",
"reorder_at": 20
}
]
}Get Product
GET /v1/products/:idCreate Product
POST /v1/productsBody
{
"name": "Mechanical Keyboard",
"sku": "MK-004",
"unit": "pcs",
"reorder_at": 10,
"initial_stock": 50
}Delete Product
DELETE /v1/products/:idReturns 204 No Content on success.