Endpoints
API endpoint reference
Implemented tenant endpoints
All paths below are relative to https://api.smartwms.one. Replace {tenantId} and other placeholders with UUIDs. Send Authorization: Bearer YOUR_JWT_TOKEN. The user must belong to the tenant and have the permission required by the operation.
Catalog and warehouse structure
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/tenant/{tenantId}/products | List products |
| GET | /api/v1/tenant/{tenantId}/products/{id} | Read a product |
| POST | /api/v1/tenant/{tenantId}/products | Create a product |
| PUT | /api/v1/tenant/{tenantId}/products/{id} | Update a product |
| POST | /api/v1/tenant/{tenantId}/products/import | Upload CSV as multipart field file |
| GET | /api/v1/tenant/{tenantId}/product-categories | List categories |
| GET | /api/v1/tenant/{tenantId}/warehouses | List warehouses |
| GET | /api/v1/tenant/{tenantId}/zones | List zones |
| GET | /api/v1/tenant/{tenantId}/locations | List locations |
Create a product
POST /api/v1/tenant/{tenantId}/products
Authorization: Bearer YOUR_JWT_TOKEN
Content-Type: application/json
{
"sku": "DOC-SAMPLE-001",
"name": "Sample product",
"unitOfMeasure": "EA",
"isActive": true
}
Use an unused SKU. Creating a product does not create stock. See CSV import for supported import fields.
Inventory and orders
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/tenant/{tenantId}/stock/levels | Stock levels |
| GET | /api/v1/tenant/{tenantId}/stock/movements | Stock movements |
| POST | /api/v1/tenant/{tenantId}/stock/adjust | Stock adjustment operation |
| POST | /api/v1/tenant/{tenantId}/stock/transfer | Direct stock transfer operation |
| GET | /api/v1/tenant/{tenantId}/sales-orders | Sales orders |
| POST | /api/v1/tenant/{tenantId}/sales-orders | Create sales order |
| PUT | /api/v1/tenant/{tenantId}/sales-orders/{id}/status | Request a sales-order status transition |
| GET | /api/v1/tenant/{tenantId}/purchase-orders | Purchase orders |
| GET | /api/v1/tenant/{tenantId}/transfers | Transfer documents |
Stock operations require their complete operation-specific payload, including location, quantity and tracking identity where applicable. Do not copy a product-creation body into a stock or order request. Valid transitions are checked by the server.
Reports and IoT
| Method | Path | Purpose |
|---|---|---|
| GET | /api/v1/tenant/{tenantId}/reports/inventory-summary | Inventory summary; optional warehouseId |
| GET | /api/v1/tenant/{tenantId}/reports/stock-movements | Movement report; dateFrom/dateTo/warehouseId filters |
| GET | /api/v1/tenant/{tenantId}/reports/order-fulfillment | Fulfillment report; dateFrom/dateTo filters |
| GET | /api/v1/tenant/{tenantId}/reports/receiving | Receiving report |
| GET | /api/v1/tenant/{tenantId}/reports/warehouse-utilization/{warehouseId} | Warehouse utilization |
| POST | /api/v1/tenant/{tenantId}/iot/telemetry | Ingest one telemetry reading |
This is a practical subset, not an exhaustive schema for every module. See Authentication, IoT Devices and Webhooks for their specific contracts. Test writes in an isolated test company with synthetic data.