Update product
shoprocket_update_productWRITE: change a product's fields (price, stock quantity, description, status...). Shoprocket requires the name on every update, so pass the current name to keep it. Only the fields you pass are sent. POST /v1/products/{id}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sku | No | SKU. | |
| name | Yes | Product name (required by Shoprocket on every update; pass the current one to keep it). | |
| price | No | Price as an integer in the smallest currency unit (cents: 1999 = 19.99), as Shoprocket's API takes it. Check the reply. | |
| status | No | 1 = active (Shoprocket returns status "1" for live products), 0 = inactive. | |
| weight | No | Weight, in the store's weight unit. | |
| summary | No | Short summary. | |
| quantity | No | Stock quantity. | |
| categories | No | Comma-separated categories for the product, in the same form as shoprocket_create_product. Shoprocket lists it as required but leaves it out of its update example: pass it if Shoprocket answers that categories are required. | |
| product_id | Yes | Shoprocket product id (prod_...). | |
| description | No | Product description (HTML allowed). | |
| max_order_quantity | No | Maximum quantity per order. | |
| min_order_quantity | No | Minimum quantity per order. |