ordercloud.products.generateVariants
Generates product variants from a product's defined specs, optionally assigning a price schedule to each variant. Use it to create variant SKUs for spec combinations in one step.
Instructions
Generate variants for a product based on its specs
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": {
"productId": "<productId>"
},
"name": "ordercloud.products.generateVariants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| productId | Yes | The product ID | |
| priceScheduleId | No | Optional price schedule ID to assign to variants |