Update Product
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/products/{productId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"price": 210000
}
'{
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone",
"price": 210000,
"attributes": [
"color",
"memory",
"processor"
],
"metadata": {
"test": false,
"vendor": "Online Stores"
},
"image_url": "https://www.website.com/image.png",
"created_at": "2022-09-12T12:58:22.232Z",
"updated_at": "2022-09-12T13:33:48.904Z",
"object": "product"
}Update Product
Updates the specified product by setting the values of the parameters passed in the request body. Any parameters not provided in the payload will be left unchanged.
PUT
/
v1
/
products
/
{productId}
Update Product
curl --request PUT \
--url https://{cluster}.voucherify.io/v1/products/{productId} \
--header 'Content-Type: application/json' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data '
{
"price": 210000
}
'{
"id": "prod_0bae2dc5a090fd0184",
"source_id": "first_product",
"name": "Samsung Phone",
"price": 210000,
"attributes": [
"color",
"memory",
"processor"
],
"metadata": {
"test": false,
"vendor": "Online Stores"
},
"image_url": "https://www.website.com/image.png",
"created_at": "2022-09-12T12:58:22.232Z",
"updated_at": "2022-09-12T13:33:48.904Z",
"object": "product"
}Authorizations
X-App-Id & X-App-TokenX-Voucherify-OAuth
Scopes
Path Parameters
Body
application/json
Specify the parameters of the product that are to be updated.
Request schema for PUT v1/products.
Response
200 - application/json
Returns an updated product object.
Response body schema for PUT v1/products/{productId}.
The metadata object stores all custom attributes assigned to the product. A set of key/value pairs that you can attach to a product object. It can be useful for storing additional information about the product in a structured format. It can be used to create product collections.

