Skip to main content

ProductVariantInput

No description

input ProductVariantInput {
sku: String
name: String
trackInventory: Boolean
weight: WeightScalar
costPrice: PositiveDecimal
price: PositiveDecimal
currency: String
attributes: [AttributeValueInput!]
customFields: [AttributeValueInput!]
stocks: [StockInput!]
product: ID
seller: ID
seo: SeoInput
overrideCurrency: Boolean
isPublished: Boolean
publishedAt: DateTime
allowBackorders: Boolean
isShippingRequired: Boolean
isDigital: Boolean
isPriceOverrideAllowed: Boolean
dimensions: ProductDimensionsInput
}
Show more ↓

Fields​

ProductVariantInput.sku ● String scalar​

ProductVariantInput.name ● String scalar​

ProductVariantInput.trackInventory ● Boolean scalar​

Determines whether to track changes to this variant's inventory.

ProductVariantInput.weight ● WeightScalar scalar​

ProductVariantInput.costPrice ● PositiveDecimal scalar​

Cost price of the variant.

ProductVariantInput.price ● PositiveDecimal scalar​

Price of the particular variant.

ProductVariantInput.currency ● String scalar​

Currency of the product variant.

ProductVariantInput.attributes ● [AttributeValueInput!] list input​

ProductVariantInput.customFields ● [AttributeValueInput!] list input​

List of custom fields.

ProductVariantInput.stocks ● [StockInput!] list input​

ProductVariantInput.product ● ID scalar​

Product ID of which type is the variant.

ProductVariantInput.seller ● ID scalar​

Seller that owns the variant. (Only usable with MANAGE_MARKETPLACE permission).

ProductVariantInput.seo ● SeoInput input​

Search engine optimization fields.

ProductVariantInput.overrideCurrency ● Boolean scalar​

Whether to override the currency for this product variant.

ProductVariantInput.isPublished ● Boolean scalar​

Informs whether a collection is published. All variants are published by default.

ProductVariantInput.publishedAt ● DateTime scalar​

The datetime when this variant will become available.

ProductVariantInput.allowBackorders ● Boolean scalar​

Whether to allow backorders for this product variant, if backorders are permitted at the marketplace level.

ProductVariantInput.isShippingRequired ● Boolean scalar​

Set whether this variant requires shipping by default, will be overridden by product type attached to product if available.

ProductVariantInput.isDigital ● Boolean scalar​

Set whether this variant is digital by default, will be overridden by product type attached to product if available.

ProductVariantInput.isPriceOverrideAllowed ● Boolean scalar​

Set whether this variant allows price overrides by default, will be overridden by product type attached to product if available.

ProductVariantInput.dimensions ● ProductDimensionsInput input​

Product dimensions.

Member Of​

productVariantUpdate mutation

Was this page helpful?