CreateProductVariantInput
A new variant of a product.
input CreateProductVariantInput {
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
packs: [CreateVariantPackInput!]
price: Float
purchaseUOMId: ID
salePrice: Float
salesUOMId: ID
serialNo: String
sku: String
tags: [String!]
variantPrices: [CreateVariantPriceInput!]
warehouseId: ID
weight: Float
}
Fields
CreateProductVariantInput.QRCode ● String scalar
The QR code of the variant.
CreateProductVariantInput.attributes ● JSON scalar
The variant's attributes, such as colour or size, as JSON.
CreateProductVariantInput.barcode ● String scalar
The barcode of the variant.
CreateProductVariantInput.baseUOMId ● ID scalar
The ID of the base unit of measure.
CreateProductVariantInput.cost ● Float scalar
The cost of one unit.
CreateProductVariantInput.dimensions ● JSON scalar
The size of one unit, as JSON.
CreateProductVariantInput.imageUrl ● String scalar
The URL of the main image.
CreateProductVariantInput.imageUrls ● [String!] list scalar
The URLs of the images.
CreateProductVariantInput.inventoryUOMId ● ID scalar
The ID of the unit of measure stock is kept in.
CreateProductVariantInput.isActive ● Boolean! non-null scalar
Whether the record is active.
CreateProductVariantInput.isDefault ● Boolean scalar
Whether this is the default.
CreateProductVariantInput.maxOrderQuantity ● Float scalar
The largest quantity that can be ordered.
CreateProductVariantInput.metaDescription ● String scalar
The page description for search engines.
CreateProductVariantInput.metaTitle ● String scalar
The page title for search engines.
CreateProductVariantInput.minOrderQuantity ● Float! non-null scalar
The smallest quantity that can be ordered.
CreateProductVariantInput.name ● String scalar
The name of the variant.
CreateProductVariantInput.openingStock ● Float scalar
Opening stock quantity to be added to inventory
CreateProductVariantInput.openingStockBatchNumber ● String scalar
Batch number for opening stock
CreateProductVariantInput.openingStockCost ● Float scalar
Cost per unit for opening stock
CreateProductVariantInput.packs ● [CreateVariantPackInput!] list input
The packs sold with the variant. They are saved before the price tiers, which are checked against them.
CreateProductVariantInput.price ● Float scalar
The list price. Must be greater than zero.
CreateProductVariantInput.purchaseUOMId ● ID scalar
The ID of the unit of measure used for purchases.
CreateProductVariantInput.salePrice ● Float scalar
Pre-negotiated sale price
CreateProductVariantInput.salesUOMId ● ID scalar
The ID of the unit of measure used for sales.
CreateProductVariantInput.serialNo ● String scalar
The serial number of the variant.
CreateProductVariantInput.sku ● String scalar
The SKU of the variant.
CreateProductVariantInput.tags ● [String!] list scalar
Tags on the variant.
CreateProductVariantInput.variantPrices ● [CreateVariantPriceInput!] list input
The price tiers, by quantity and customer tier.
CreateProductVariantInput.warehouseId ● ID scalar
Warehouse ID for opening stock
CreateProductVariantInput.weight ● Float scalar
The weight of one unit.
Member Of
CreateProductInput input ● createProductVariant mutation ● UpdateProductInput input