Skip to main content
Log inSign up
Anchor to ProductVariantsBulkInput

ProductVariantsBulkInput

input_object

The input fields for specifying a product variant to create as part of a variant bulk mutation.

•

The value of the barcode associated with the product variant.

•

The compare-at price of the variant.

•

Specifies the product variant to update or delete.

•

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. Defaults to DENY.

•

The inventory quantities at each location where the variant is stocked. The number of elements in the array of inventory quantities can't exceed the amount specified for the plan. Supported as input with the productVariantsBulkCreate mutation only.

•

The ID of the media that's associated with the variant.

•

The URL of the media to associate with the variant.

•

The additional customizable information about the product variant.

•

The custom properties that a shop owner uses to define product variants.

•

The price of the variant.

•

Whether the variant is taxable.

•

The tax code associated with the variant.

Show
deprecated fields Deprecated
Anchor to fulfillmentServiceIdfulfillmentServiceId
•
IDDeprecated

The ID of a fulfillment service that stocks a product variant.

The relationship between a product variant and a fulfillment service was changed in the 2022-07 API version. A ProductVariant can be stocked by multiple fulfillment services. As a result, we recommend that you use the inventoryItem field if you need to determine where a product variant is stocked.

If you previously set this field, then we recommend that you instead activate inventory items at locations. Each Location is associated with a single FulfillmentService.

Learn more about managing inventory quantities and states.

Anchor to harmonizedSystemCodeharmonizedSystemCode
•
StringDeprecated

The Harmonized System code (or HS Tariff code) for the variant. Use inventoryItem.harmonizedSystemCode instead.

•

The private metafields associated with the product. Metafields created using a reserved namespace are private by default. See our guide for migrating private metafields.

•
BooleanDeprecated

Whether the variant requires shipping. Use inventoryItem.requiresShipping instead.

•
StringDeprecated

The SKU for the variant. Use inventoryItem.sku instead.

•
FloatDeprecated

The weight of the variant. Use inventoryItem.measurement.weight.value instead.

•
WeightUnitDeprecated

The unit of weight that's used to measure the variant. Use inventoryItem.measurement.weight.unit instead.


Was this section helpful?