Update Product API
This endpoint allows you to update the details of an existing product using its unique skuCode. You can update descriptions, pricing, dimensions, or toggle the product's availability.
PUT
https://api-fulfillment.bosta.co/api/v1/inventory/products/:skuCodeUpdate product information. The skuCode in the URL identifies which product to modify.
REQUEST BODY
{
"name": "MAGDY199111",
"description": "A not sample product for testing",
"price": 99.99,
"itemValue": 75,
"images": [
{
"url": "https://cdn.futura-sciences.com/cdn-cgi/image/width=1920,quality=50,format=auto/sources/images/dossier/773/01-intro-773.jpg"
}
],
"weight": 505,
"dimensions": {
"length": 11,
"width": 10,
"height": 10
},
"isActive": true
}
Responses
200Product updated successfully
400Invalid itemValue
404Product not found
Field Details
| Field | Type | Description |
|---|---|---|
| skuCode (URL) | string | The unique identifier of the product you want to update. |
| itemValue | number | The cost of a single item. If provided, it must be greater than 0 and less than the product's price. Shown as Item Value in the Fulfillment Dashboard. |
| isActive | boolean | Set to false to hide the product from fulfillment selection without deleting it. |
| weight/dimensions | object | Updating these will affect future shipping cost calculations. |
Note on Product Images
When updating images, the system replaces the old image array with the new one provided in the request body. Ensure you include all images you want to keep.