Variants

Variants implement the Line item products interface.

Associated queryReturns multiple results
Variant
Variants✔️
LabelTypeNotesNull
attributesAttributesThe variant's attributes ("Blue", "1,32 meters", "Plastic", ... )
barcodestringThis variant's barcode✔️
changedDateThe date of the variant's last modification
createdDateThe date of the variant's creation
default_component_discountdecimal (10,2)The discount applied to it's components (if it has any)
idintegerThe id of this variant
initial_costdecimal(12,4)The initial cost of this variant
is_assemblybooleanIndicates if this variants is an assembly of other variants
is_componentbooleanIndicates if this variants is a components of a kit or assembly
is_kitbooleanIndicates if this variant is a kit
labelstringThe name of this variant
moving_average_costdecimal(12,4)The average moving cost of this variant
packsPacksThe packs including this variant✔️
pricesPricesThe prices used for this variant✔️
productProductThe product this variant's is associated with
skustringThe sku of this variant✔️
stock_levelsStock levelsThe stock levels of this variant
supplier_skustringThe sku of this variant's supplier✔️
track_inventorybooleanIndicates if we should track the inventory of this variant
userUserThe user who created this variant
weight_amountdecimal(10,2)The weight of this variant✔️
weight_unitstringThe unit used to weigh this variant✔️
taxablebooleanIf we can apply taxes to this variant✔️
taxesTaxesThe taxes applied to this variant✔️
ecotaxdecimal(10,2)The ecotax applied to this variant✔️
query {
  Variants(page: 0, page_size: 5) {
    edges {
      node {
        attributes {
          edges {
            node {
              id,
              label,
              option {
                id,
                label
              }
            }
          }
				}
        barcode
        changed
        created
        default_component_discount
        id
        initial_cost
        is_assembly
        is_component
        is_kit
        label
        moving_average_cost
        packs {
          edges {
            node {
              id
            }
          }
        }
        prices {
          edges {
            node {
              id
            }
          }
        }
        product {
          id
        }
        sku
        stock_levels {
          edges {
            node {
              id
            }
          }
        }
        supplier_sku
        track_inventory
        user {
          display_name
        }
        weight_amount
        weight_unit
        taxable
        taxes {
            edges {
                node {
                    label
                }
            }
        }
        ecotax
      }
    }
  }
}