Skip to main content

VariantInCompositeCreateInput

The necessary fields in order to create a new variant inside a ProductCompositeCreateInput

input VariantInCompositeCreateInput {
barcode: String
casePack: Int
contentItemInputIds: [String!]
deliveryMethod: VariantDeliveryMethod
manufacturer: String
mapPrice: Float
mpn: String
msrp: Float
optionValues: [String!]!
position: Int
price: Float
shippingDimensions: VariantShippingDimensionsInput
sku: String
standardizedColor: VariantStandardizedColor
taxCode: String
weight: VariantWeightInput
}

Fields

VariantInCompositeCreateInput.barcode ● String scalar

UPC, ISBN, GTIN, etc.

VariantInCompositeCreateInput.casePack ● Int scalar

Quantity in one variant (i.e. 12-pack). Must be a positive integer.

VariantInCompositeCreateInput.contentItemInputIds ● [String!] list scalar

For contentItems where you are associating an existing contentItem, input the actual contentItemId. For other contentItem Inputs, match this to the contentItemInputId you have assigned.

VariantInCompositeCreateInput.deliveryMethod ● VariantDeliveryMethod enum

VariantInCompositeCreateInput.manufacturer ● String scalar

Often same as vendor, but not always.

VariantInCompositeCreateInput.mapPrice ● Float scalar

Minimum Advertised Price. Must be a positive number.

VariantInCompositeCreateInput.mpn ● String scalar

Manufacturer Part Number

VariantInCompositeCreateInput.msrp ● Float scalar

Manufacturer's Suggested Retail Price. Must be a positive number.

VariantInCompositeCreateInput.optionValues ● [String!]! non-null scalar

An array of the option values that make up this variant. For example, a product with a color and size option would have two option values, one for each of the color and size options, i.e. ["Red", "Small"] Must have 1-3, and it should match the number of options in the product, but there is no validation to do so. Set this to "No Option" if you don't want to use options for this product and this is the only variant. See https://docs.buildresonance.com/concepts/products/#no-option-products for more info.

VariantInCompositeCreateInput.position ● Int scalar

Used to determine what order the content comes out in. Positive Integers are allowed, up to 9,999,999,999, and it does not have to be unique or sequential.

VariantInCompositeCreateInput.price ● Float scalar

Price for the defaultCurrency, can be any positive float number value.

VariantInCompositeCreateInput.shippingDimensions ● VariantShippingDimensionsInput input

VariantInCompositeCreateInput.sku ● String scalar

Stock Keeping Unit

VariantInCompositeCreateInput.standardizedColor ● VariantStandardizedColor enum

VariantInCompositeCreateInput.taxCode ● String scalar

Sales Tax Related Code, can match your chosen sales tax provider

VariantInCompositeCreateInput.weight ● VariantWeightInput input

Member of

ProductCompositeCreateInput input