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✔️
{
  "codes": [
    {
      "code": "query{\n  Variants{\n    edges{\n      node{\n        attributes{\n          edges{\n            node{\n              label\n            }\n          }\n        }\n        barcode\n        changed\n        created\n        default_component_discount\n        id\n        initial_cost\n        is_assembly\n        is_component\n        is_kit\n        label\n        moving_average_cost\n        packs{\n          edges{\n            node{\n              id\n            }\n          }\n        }\n        prices{\n          edges{\n            node{\n              id\n            }\n          }\n        }\n        product{\n          id\n        }\n        sku\n        stock_levels{\n          edges{\n            node{\n              id\n            }\n          }\n        }\n        supplier_sku\n        track_inventory\n        user{\n          display_name\n        }\n        weight_amount\n        weight_unit\n      }\n    }\n  }\n}\n",
      "language": "json"
    }
  ]
}