PATCH

Update Product


Updates specified fields in a product.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Stores - all permissions
Manage Products
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/stores/v1/products/{product.id}

Path Params
product.idstringRequired

Product ID (generated automatically by the catalog).

Body Params
productProductRequired
Response Object
productProduct
Update Product Example 1
Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/stores/v1/products/83f41911-5375-4ede-aafa-68f8b6dee9e2' \ --data-binary '{ "product": { "name": "T-shirt", "productType": "physical", "priceData": { "price": 12.5 }, "description": "nice summer t-shirt", "sku": "123df", "visible": false, "weight": 0.2, "ribbon": "Sold Out", "brand": "Nice", "discount": { "type": "AMOUNT", "value": 2 }, "productOptions": [ { "name": "Size", "choices": [ { "value": "S", "description": "Small" } ] } ] } }' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "product": { "id": "83f41911-5375-4ede-aafa-68f8b6dee9e2", "name": "T-shirt", "slug": "t-shirt-1", "visible": false, "productType": "physical", "description": "nice summer t-shirt", "stock": { "trackInventory": false, "inStock": true }, "price": { "currency": "USD", "price": 12.5, "discountedPrice": 10.5, "formatted": { "price": "$12.50", "discountedPrice": "$10.50" } }, "priceData": { "currency": "USD", "price": 12.5, "discountedPrice": 10.5, "formatted": { "price": "$12.50", "discountedPrice": "$10.50" } }, "convertedPriceData": { "currency": "USD", "price": 12.5, "discountedPrice": 10.5, "formatted": { "price": "$12.50", "discountedPrice": "$10.50" } }, "additionalInfoSections": [], "ribbons": [ { "text": "Sold Out" } ], "media": { "items": [] }, "customTextFields": [], "manageVariants": true, "productOptions": [ { "optionType": "drop_down", "name": "Size", "choices": [ { "value": "S", "description": "Small", "inStock": true, "visible": true } ] } ], "productPageUrl": { "base": "https://roysha.wixsite.com/roycoffeestore", "path": "/product-page/t-shirt-1" }, "numericId": "1620048324853000", "inventoryItemId": "7c0be6ee-ac8a-b121-5505-97074921161d", "discount": { "type": "AMOUNT", "value": 2 }, "collectionIds": [], "variants": [ { "id": "9a86bab7-0558-48a7-a953-0594e6d5534d", "choices": { "Size": "Small" }, "variant": { "priceData": { "currency": "USD", "price": 12.5, "discountedPrice": 10.5, "formatted": { "price": "$12.50", "discountedPrice": "$10.50" } }, "convertedPriceData": { "currency": "USD", "price": 12.5, "discountedPrice": 10.5, "formatted": { "price": "$12.50", "discountedPrice": "$10.50" } }, "weight": 0.2, "sku": "123df", "visible": false } } ], "lastUpdated": "2021-05-03T13:44:17.610Z", "ribbon": "Sold Out", "brand": "Nice" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?