Update_product_variant_detail
Modify specific variant details including price, stock, barcode, SKU, and image for a product. Works for products with or without variants.
Instructions
An API for update specific variant detail for both with and without variant product.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id__path | Yes | Product id (Path parameter) | |
| barcode | No | Product variant barcode. | |
| id | No | Product variant id. | |
| imageUrl | No | Product variant image URL. | |
| onHandNumber | No | Quantity in stock (Include ‘Reserved’ and ‘Ready to ship’ status). | |
| price | No | Product variant price. | |
| sku | No | Product variant sku. | |
| weight | No | Weight must be greater than or equal to 0.01 Kg, lower than or equal to 999.99 Kg and allow with two decimal place only. |
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 |