See the Queries page for a presentation of this resource.
Document line items have no dedicated GraphQL mutations: CreateLineItem, UpdateLineItem and DeleteLineItem do not exist. To add, edit or delete a line, use the update mutation of the parent document (UpdateOrder, UpdateShippingOrder, UpdateInvoice, UpdatePurchase, etc.) and send the complete line_items list: any line whose id is missing from that list is deleted.
To create a document with its lines, set line_items directly in the input of the corresponding Create... mutation.
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| temporary_id - ID |
|---|
| Temporary ID for kits and packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| apply_discount_rules - Boolean |
|---|
| Whether to apply discount rules to this line item. |
| replace_label - Boolean |
|---|
| Replace label flag |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| replace_label - Boolean |
|---|
| Replace label flag |
| temporary_id - ID |
|---|
| Temporary ID for kits and packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| total - Float |
|---|
| Total amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| replace_label - Boolean |
|---|
| Replace label flag |
| discount - Float |
|---|
| Discount amount |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| temporary_id - ID |
|---|
| Temporary ID for kits and packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| temporary_id - ID |
|---|
| Temporary ID for kits and packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| replace_label - Boolean |
|---|
| Replace label flag |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| apply_discount_rules - Boolean |
|---|
| Whether to apply discount rules to this line item. |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| bin_location - String |
|---|
| Bin location identifier |
| temporary_id - ID |
|---|
| Temporary ID for kits and packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| replace_label - Boolean |
|---|
| Replace label flag |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| apply_discount_rules - Boolean |
|---|
| Whether to apply discount rules to this line item. |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| replace_label - Boolean |
|---|
| Replace label with description |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| replace_label - Boolean |
|---|
| Replace label flag |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| apply_discount_rules - Boolean |
|---|
| Whether to apply discount rules to this line item. |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| replace_label - Boolean |
|---|
| Replace label flag |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| discount - Float |
|---|
| Discount amount |
| tax_amount - Float |
|---|
| Tax amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| replace_label - Boolean |
|---|
| Replace label with description |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| parent_id - Int |
|---|
| Parent line item ID |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| serial_number_text - String |
|---|
| Raw serial number text (alternative to structured input) |
| replace_label - Boolean |
|---|
| Replace label flag |
| id - ID |
|---|
| Identifier (optional) |
| location_id - String |
|---|
| Location identifier |
| variant_id - String |
|---|
| Variant identifier |
| quantity - Float |
|---|
| Quantity of the line item |
| price - Float |
|---|
| Price of the line item |
| calculate_price_from_components - Boolean |
|---|
| Calculate price from components |
| drop_shipping - Int |
|---|
| Drop shipping flag (0 or 1) |
| parent_id - Int |
|---|
| Parent line item ID |
| weight - Int |
|---|
| Weight of the line item |
| description - String |
|---|
| Description of the line item |
| replace_label - Boolean |
|---|
| Replace label flag |
| temporary_id - ID |
|---|
| Temporary ID for kits & packaging |
| kit_line_item_id - ID |
|---|
| Kit line item ID |
| discount - Float |
|---|
| Discount amount |
| discount_rule_id - ID |
|---|
| Discount rule ID |
| discount_rule_amount - Float |
|---|
| Discount rule amount |
| ecotax - Float |
|---|
| Eco-tax amount |
| total - Float |
|---|
| Total amount |
| column - String |
|---|
| Column name to filter on |
| operator - String |
|---|
| Filter operator (e.g. EQ, GT, LIKE) |
| value - Mixed |
|---|
| Filter value |
| Value | Description |
|---|
normal | Standard product line item (default). |
kit | Kit/bundle line item. |
custom_product | Custom product (variant_id = -1). |
deposit | Deposit line item. |
shipping_cost | Shipping cost line item. |
global_discount | Global discount line item. |
packaging | Packaging line item. |
| Value | Description |
|---|
amount | Fixed discount amount. |
percentage | Percentage-based discount. |