Magidoc

ProductVariantInput
Input Object

The properties of the new ProductVariant.

Fields

#

id

The ID of the ProductVariant (required if updating an existing ProductVariant).

listings

The ListingInput associated with the ProductVariant. One Listing is required for each ProductVariant, unless the sales channel manages inventory through inventoryLevels instead. On productUpdate, a variant from such a sales channel may omit both listings and inventoryLevels to leave its inventory unchanged.

mediaSources

[ String !]

The Media source of the ProductVariant. This is a list of URLs and is used to relate the ProductVariant to Media.

options

The options of the ProductVariant.

price

The price of the ProductVariant.

productId

The Product ID associated with the ProductVariant (required if creating a new ProductVariant).

sku

The SKU of the ProductVariant.

Usages

#

References

#

  • Argument input of field productVariantCreate from type Mutation
  • Argument input of field productVariantUpdate from type Mutation