Skip to main content

ProductVariantCreateInput

No description

input ProductVariantCreateInput {
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
externalSource: String
externalId: String
image: Upload
}
Show more ↓

Fields

ProductVariantCreateInput.sku ● String scalar

ProductVariantCreateInput.name ● String scalar

ProductVariantCreateInput.trackInventory ● Boolean scalar

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

ProductVariantCreateInput.weight ● WeightScalar scalar

ProductVariantCreateInput.costPrice ● PositiveDecimal scalar

Cost price of the variant.

ProductVariantCreateInput.price ● PositiveDecimal scalar

Price of the particular variant.

ProductVariantCreateInput.currency ● String scalar

Currency of the product variant.

ProductVariantCreateInput.attributes ● [AttributeValueInput!] list input

ProductVariantCreateInput.customFields ● [AttributeValueInput!] list input

List of custom fields.

ProductVariantCreateInput.stocks ● [StockInput!] list input

ProductVariantCreateInput.product ● ID scalar

ProductVariantCreateInput.seller ● ID scalar

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

ProductVariantCreateInput.seo ● SeoInput input

Search engine optimization fields.

ProductVariantCreateInput.overrideCurrency ● Boolean scalar

Whether to override the currency for this product variant.

ProductVariantCreateInput.isPublished ● Boolean scalar

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

ProductVariantCreateInput.publishedAt ● DateTime scalar

The datetime when this variant will become available.

ProductVariantCreateInput.allowBackorders ● Boolean scalar

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

ProductVariantCreateInput.isShippingRequired ● Boolean scalar

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

ProductVariantCreateInput.isDigital ● Boolean scalar

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

ProductVariantCreateInput.isPriceOverrideAllowed ● Boolean scalar

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

ProductVariantCreateInput.dimensions ● ProductDimensionsInput input

Product dimensions.

ProductVariantCreateInput.externalSource ● String scalar

The external source identifier of a foreign system if a product variant originated from that system.

ProductVariantCreateInput.externalId ● String scalar

The external ID from a foreign system if a product variant originated from that system.

ProductVariantCreateInput.image ● Upload scalar

Initial image to associate with the variant.

Member Of

productVariantCreate mutation

Was this page helpful?