OBJECT

Variant

A unique option type/option value combination that represents a variation of a purchasable item.

link GraphQL Schema definition

  • type Variant implements Node {
  • barcode: String
  • # Number of items available with a given variant.
  • countOnHand: Int!
  • # Whether to display the given variant in the associated advert.
  • displayable: Boolean!
  • # An ID that is managed the retailer.
  • externalId: String
  • externalIds: [ExternalID!]!
  • id: ID!
  • # Arguments
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • images(after: String, before: String, first: Int, last: Int): ImagesConnection!
  • # Whether the quantity for the given variant is unlimited.
  • infiniteQuantity: Boolean!
  • # The displayable label for the variant. Includes variant type and value (e.g.
  • # "size / M"). Falls back to SKU if no option values set, ID if no SKU is set.
  • label: String!
  • legacyId: Int!
  • # Lowest non-sale price available for the item. Denominated in cents.
  • lowestOriginalPriceCents: Int
  • # Absolute lowest price (sale price or original price) available for the item.
  • # Denominated in cents.
  • lowestPriceCents: Int
  • # Arguments
  • # after: Returns the elements in the list that come after the
  • # specified cursor.
  • # before: Returns the elements in the list that come before the
  • # specified cursor.
  • # first: Returns the first _n_ elements from the list.
  • # last: Returns the last _n_ elements from the list.
  • optionValues(after: String, before: String, first: Int, last: Int): OptionValueConnection!
  • # Option value labels before being mapped to canonical option values. (Includes
  • # the original values for both unmapped and mapped option values)
  • optionValuesBeforeMapping: [String!]!
  • sku: String
  • url: String
  • }