Skip to main content

CreateVariantPriceInput

A price tier on a variant.

input CreateVariantPriceInput {
cost: Float
currency: String
customerTierIds: [String!]
discountPercent: Float!
isActive: Boolean!
maxQuantity: Float
minQuantity: Float!
name: String!
price: Float!
uomId: String
validFrom: String
validTo: String
}

Fields​

CreateVariantPriceInput.cost ● Float scalar​

The cost of one unit in the tier.

CreateVariantPriceInput.currency ● String scalar​

ISO 4217 currency code.

CreateVariantPriceInput.customerTierIds ● [String!] list scalar​

The customer tiers the price is for.

CreateVariantPriceInput.discountPercent ● Float! non-null scalar​

The discount in percent. Defaults to 0.

CreateVariantPriceInput.isActive ● Boolean! non-null scalar​

Whether the record is active.

CreateVariantPriceInput.maxQuantity ● Float scalar​

The largest quantity the tier applies to.

CreateVariantPriceInput.minQuantity ● Float! non-null scalar​

The smallest quantity the tier applies to.

CreateVariantPriceInput.name ● String! non-null scalar​

The name of the tier.

CreateVariantPriceInput.price ● Float! non-null scalar​

The price in the tier. 0 is a deliberate free tier, and a negative price is never valid.

CreateVariantPriceInput.uomId ● String scalar​

The ID of the unit of measure.

CreateVariantPriceInput.validFrom ● String scalar​

When the tier starts to apply.

CreateVariantPriceInput.validTo ● String scalar​

When the tier stops applying.

Member Of​

CreateProductVariantInput input ● UpdateProductVariantInput input