All API endpoints require authentication. Use Bearer token authentication by including the following header:
Authorization: Bearer <your-token>
/api/v1/
GET /products/Returns a list of all products.
GET /products/{code}/Returns details of a specific product.
POST /products/Create a new product.
PUT /products/{code}/Update an existing product.
DELETE /products/{code}/Delete a product.
POST /products/{code}/adjust_stock/Adjust stock level for a product.
Request body:
{
"adjustment_quantity": 10
}GET /variants/Returns a list of all product variants.
GET /variants/{code}/Returns details of a specific variant.
POST /variants/Create a new product variant.
PUT /variants/{code}/Update an existing variant.
DELETE /variants/{code}/Delete a variant.
POST /variants/{code}/adjust_stock/Adjust stock level for a variant.
Request body:
{
"adjustment_quantity": 10
}POST /stock-adjustments/Request body for single product using code or id:
{
"product_code":"P00018",
"adjustment_quantity": 99
}{
"product":1,
"adjustment_quantity": 99
}Request body for single variant using code or id:
{
"variant_code":"P00018-5",
"adjustment_quantity": 99
}{
"variant":1,
"adjustment_quantity": 5
}bulk adjustment for given products and variants
Request body for single variant using code:
[
{
"variant_code":"P00018-5",
"adjustment_quantity": 5
},
{
"product_code":"P00018",
"adjustment_quantity": -18
},
{
"variant":1,
"adjustment_quantity": 5
},
{
"product":1,
"adjustment_quantity": 99
}
]GET /orders/Returns a list of all orders.
GET /orders/{id}/Returns details of a specific order including its items.
PUT /orders/{id}/Update an existing order.
PATCH /orders/{id}/Request body for single order change:
{
"uma_status": "packed"
}PATCH /api/v1/orders/{id}/items/{itemid}/status/Request body
{
"uma_picked": "picked"
}POST /api/v1/syncRequest body
{
"type": "orders"
}POST /api/v1/syncRequest body
{"type":"orders_status",
"orderids": [3,4],
"statusid": 21
}POST /api/v1/syncRequest body
{"type":"products_simple",
"codes":"P00147-5;P00170"
}POST /api/v1/syncRequest body
{"type":"products_full"
}POST /api/v1/syncRequest body
{"type":"products_partial"
}POST /api/v1/syncRequest body
{"type":"update_stock"
}{
"data": {},
"message": "Operation successful"
}{
"error": {
"code": "ERROR_CODE",
"message": "Error message description"
}
}- 200: Success
- 201: Created
- 400: Bad Request
- 401: Unauthorized
- 403: Forbidden
- 404: Not Found
- 500: Internal Server Error