Commerce
createVariant
Add Variation
Add ONE variation to a product: e.g.
Arguments
appIdstringrequiredThe Studio app ID whose catalog to edit.productIdstringrequiredThe product ID to add the variation to.namestringrequiredVariation name, e.g. 'Large' or '50 ML'.priceMinorintegerrequiredAbsolute variation price in minor units, e.g. 5500 = $55.00.skustringoptionalOptional SKU.inventoryintegeroptionalOptional on-hand count for this variation.isAvailablebooleanoptionalfalse marks the variation sold out. Defaults true.
Returns
The registry does not declare a return shape.
Declared limits
priceMinor: minimum 0priceMinor: maximum 9007199254740991inventory: minimum 0inventory: maximum 9007199254740991
Ask for it
The Cloud routes these requests to this verb.
- add a large size at $55
- give this shirt a small option
- add a 50ML tier
Pair it with
The verbs that finish the job.