Create_product_variants
Configure product variants by defining options (e.g., color, size) and specifying price, weight, and stock for each.
Instructions
An API for product variants creation.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"variantOptions": "<variantOptions>",
"variants": "<variants>"
},
"name": "Create_product_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Product id | |
| variantOptions | Yes | Product variant options for designating the variant | |
| variants | Yes | Product variant template |
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 |