Creates product variants in bulk.
write_products access scope.
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
The ID of the product on which to create the variants.
An array of product variants to be created.
The value of the barcode associated with the product variant.
The compare-at price of the variant.
The ID of the fulfillment service associated with the variant.
The Harmonized System Code (or HS Tariff Code) for the variant.
Specifies the product variant to update or delete.
The ID of the image that's associated with the variant.
The URL of an image to associate with the variant. This field can only be used through mutations that create product images and must match one of the URLs being created on the product.
The inventory item associated with the variant, used for unit cost.
Whether customers are allowed to place an order for the variant when it's out of stock.
Create only field. The inventory quantities at each location where the variant is stocked. The number of elements in the array of inventory quantities cannot exceed 10 and the amount specified for the plan.
The URL of the media to associate with the variant.
The additional customizable information about the product variant.