Update_product_price
Modify product price and instant discount amount for variants, subject to promotion period restrictions.
Instructions
An API for updating prices and instant discounts on the product. (You can't edit product price and instant discount during the promotion period.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product id | |
| instantDiscount | Yes | Product instant discount must be greater than 0. If instant discount amount is 0, the instant discount will be disabled. | |
| variants | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brand | No | Product brand | |
| category | No | Category Object | |
| code | No | Product code | |
| description | No | Product description with HTML formatting support | |
| giftGroups | No | Gift Groups of product | |
| giftOption | No | Product Gift Option | |
| hasOnlyDefaultVariant | No | If product doesn't have any variant will be returned 'true' | |
| id | No | Identifying number of product | |
| imageUrls | No | Product image urls | |
| instantDiscount | No | If product doesn't have instant discount will be returned '0' otherwise returned with number | |
| isDisplay | No | If product is displaying on storefront will be returned 'true' | |
| licenses | No | The list of licenses for your product | |
| name | No | Product name | |
| variantOptions | No | Product options such as size or color | |
| variants | No | Product variants |