Update Product - Venddor API

← Back to API Documentation
POST {{baseUrl}}/Products

This endpoint allows you to update existing products. Despite being a POST request, it updates products by matching the product_code to existing products.

Request Headers

Header Value Description
Authorization Basic Auth Base64 encoded username:password combination

Request Body Parameters

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

Example Request

{
  "product": "Updated Product Name",
  "product_code": "7891404130314",
  "category_ids": ["1447", "1459"],
  "price": "999.99",
  "amount": "150",
  "status": "A"
}

Response

The endpoint returns the ID of the updated product(s).

Example Response

{
  "product_id": 973732,
  "product_ids": [
    973732
  ]
}
Tip: You only need to include the fields you want to update. Fields not included in the request will retain their current values.
Important: The product_code field is used to identify the product to update. Make sure it matches the code of an existing product.