INPUT_OBJECT

VariantInput

link GraphQL Schema definition

  • input VariantInput {
  • id: ID
  • description: String
  • sku: String
  • price: Decimal
  • salePrice: Decimal
  • barcode: String
  • countOnHand: Int
  • infiniteQuantity: Boolean
  • # DEPRECATED: This argument is deprecated in favour of VariantOptionValues. Option
  • # value ids for single-select and multi-select option types
  • optionValueIds: [ID!]
  • # Variant option values of the variant. If this argument is given, variant option
  • # values will be updated to match the input and delete the missing ones.
  • variantOptionValues: [VariantOptionValueInput!]
  • images: [ImageInput!]
  • # Optional external id to identify the product
  • externalId: String
  • # Metadata key/value pairs.
  • metadata: [KeyValueInput!]
  • # External IDs key/value pairs.
  • externalIds: [KeyValueInput!]
  • # Whether seller published a variant.
  • published: Boolean
  • # Maximum purchase quantity allowed for successful checkout
  • maxPurchaseQuantity: Int
  • # Minimum purchase quantity allowed for successful checkout
  • minPurchaseQuantity: Int
  • # The size of the item. Used for comparable unit pricing.
  • itemSize: Float
  • # The comparable size of the item. Used for comparable unit pricing.
  • comparableSize: Float
  • # The unit used to measure the item. Used for comparable unit pricing.
  • itemUnit: ComparableUnitEnum
  • # The comparable unit used to measure the item. Used for comparable unit pricing.
  • comparableUnit: ComparableUnitEnum
  • variantPricingModel: VariantPricingModelInput
  • recommendedRetailPrice: String
  • wholesalePrice: String
  • salePriceStartAt: ISO8601DateTime
  • salePriceEndAt: ISO8601DateTime
  • wholesalePromoPrice: String
  • wholesalePromoPriceStartAt: ISO8601DateTime
  • wholesalePromoPriceEndAt: ISO8601DateTime
  • administrativeBodyWarning: String
  • productWarnings: String
  • healthWarnings: String
  • intendedPurpose: String
  • ingredients: String
  • directions: String
  • storageInstructions: String
  • suitableFor: String
  • allergenContains: String
  • allergenMayContain: String
  • nutritionInformation: String
  • taxCode: String
  • itemTaxRate: Decimal
  • notes: String
  • shippingParcelAttributes: ShippingParcelInput
  • shippingProfileId: ID
  • }