This endpoint allows you to update existing products. Despite being a POST request, it updates products by matching the product_code to existing products.
| Header | Value | Description |
|---|---|---|
| Authorization | Basic Auth | Base64 encoded username:password combination |
The request format is the same as for creating products. You can update up to 60 products per request.
| Parameter | Type | Required | Description |
|---|---|---|---|
| product_code* | string | Yes | Barcode/SKU of the product to update (used to identify the product) |
| product | string | No | Updated product name |
| category_ids | array | No | Updated list of category IDs |
| price | string | No | Updated unit price |
| amount | string | No | Updated stock quantity |
| status | string | No | Updated product status ("A" - active, "D" - disabled, "H" - hidden) |
| product_features | object | No | Updated product features as key-value pairs |
{
"product": "Updated Product Name",
"product_code": "7891404130314",
"category_ids": ["1447", "1459"],
"price": "999.99",
"amount": "150",
"status": "A"
}
The endpoint returns the ID of the updated product(s).
{
"product_id": 973732,
"product_ids": [
973732
]
}
product_code field is used to identify the product to update. Make sure it matches the code of an existing product.