Skip to main content

UpdateProductVariantInput

Changes to a variant. Omitted fields stay as they are.

input UpdateProductVariantInput {
QRCode: String
attributes: JSON
barcode: String
baseUOMId: ID
cost: Float
dimensions: JSON
imageUrl: String
imageUrls: [String!]
inventoryUOMId: ID
isActive: Boolean
isDefault: Boolean
maxOrderQuantity: Float
metaDescription: String
metaTitle: String
minOrderQuantity: Float
name: String
openingStock: Float
openingStockBatchNumber: String
openingStockCost: Float
price: Float
purchaseUOMId: ID
salePrice: Float
salesUOMId: ID
serialNo: String
sku: String
tags: [String!]
variantPrices: [CreateVariantPriceInput!]
warehouseId: ID
weight: Float
}

Fields​

UpdateProductVariantInput.QRCode ● String scalar​

The QR code of the variant.

UpdateProductVariantInput.attributes ● JSON scalar​

The variant's attributes, such as colour or size, as JSON.

UpdateProductVariantInput.barcode ● String scalar​

The barcode of the variant.

UpdateProductVariantInput.baseUOMId ● ID scalar​

The ID of the base unit of measure.

UpdateProductVariantInput.cost ● Float scalar​

The cost of one unit.

UpdateProductVariantInput.dimensions ● JSON scalar​

The size of one unit, as JSON.

UpdateProductVariantInput.imageUrl ● String scalar​

The URL of the main image.

UpdateProductVariantInput.imageUrls ● [String!] list scalar​

The URLs of the images.

UpdateProductVariantInput.inventoryUOMId ● ID scalar​

The ID of the unit of measure stock is kept in.

UpdateProductVariantInput.isActive ● Boolean scalar​

Whether the record is active.

UpdateProductVariantInput.isDefault ● Boolean scalar​

Whether this is the default.

UpdateProductVariantInput.maxOrderQuantity ● Float scalar​

The largest quantity that can be ordered.

UpdateProductVariantInput.metaDescription ● String scalar​

The page description for search engines.

UpdateProductVariantInput.metaTitle ● String scalar​

The page title for search engines.

UpdateProductVariantInput.minOrderQuantity ● Float scalar​

The smallest quantity that can be ordered.

UpdateProductVariantInput.name ● String scalar​

The name of the variant.

UpdateProductVariantInput.openingStock ● Float scalar​

Opening stock quantity

UpdateProductVariantInput.openingStockBatchNumber ● String scalar​

Batch number for opening stock

UpdateProductVariantInput.openingStockCost ● Float scalar​

Cost per unit for opening stock

UpdateProductVariantInput.price ● Float scalar​

The list price. Must be greater than zero.

UpdateProductVariantInput.purchaseUOMId ● ID scalar​

The ID of the unit of measure used for purchases.

UpdateProductVariantInput.salePrice ● Float scalar​

Pre-negotiated sale price

UpdateProductVariantInput.salesUOMId ● ID scalar​

The ID of the unit of measure used for sales.

UpdateProductVariantInput.serialNo ● String scalar​

The serial number of the variant.

UpdateProductVariantInput.sku ● String scalar​

The SKU of the variant.

UpdateProductVariantInput.tags ● [String!] list scalar​

Tags on the variant.

UpdateProductVariantInput.variantPrices ● [CreateVariantPriceInput!] list input​

The price tiers, by quantity and customer tier.

UpdateProductVariantInput.warehouseId ● ID scalar​

Warehouse ID for inventory updates

UpdateProductVariantInput.weight ● Float scalar​

The weight of one unit.

Member Of​

updateProductVariant mutation