Queries

Line items are variants added in documents (purchase, purchase receipt, order, shipping order, product return, stock adjustment).

Available queries

No direct query for line items. Line items are available as subqueries of documents (orders, purchases, stock adjustments, ...)


Available fields

id
Id of the line item
sku
SKU of the variant
label
Label of the variant
description
The line item can be a custom product (not created from a variant). The description is the title of the custom product.
type
Type of the variant (kit, assembly, packaging, normal)
is_kit
True if the variant of the line item is a kit or a packaging
barcode
Barcode of the variant
variant
Variant of the line item
location
Location
quantity
Quantity of variant for the line item
cost
Unit cost of the variant of the line item
weight
Position of the line item in the document
parent_id
When an order is transformed into a shipping order for example, all line items of the order are duplicated. Their parent_id is the Id of the linked line item in the order
kit_line_item_id
If the line item is a kit / packaging component, the kit_line_item_id is the id of the kit's line item
delivered
Quantity delivered for the line item
committed
Quantity committed for the line item
shipped
Quantity shipped for the line item
on_hand
On hand quantity for the variant of the line item
available
Available quantity for the variant of the line item
incoming
Incoming quantity for the variant of the line item
reserved
Reserved quantity for the variant of the line item
batch_numbers
List of the batch numbers for this line item

Input data types

LineItemInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item
customer_id
Id of the customer of the line item

LineItemOrderInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item

LineItemPurchaseInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item

LineItemProductReturnInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item

LineItemShippingOrderInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item

LineItemStockAdjustmentInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent
Parent of the line item
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
kit_line_item_id
Id of the kit's line item this line item is a component of
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item

LineItemPurchaseReceiptInput data type

id
Unique identifier of the line item
location_id
Id of the location of the line item
location
Location of the line item
variant_id
Id of the variant of the line item
variant
Variant of the line item
quantity
Quantity of the line item
price
Unit price of the line item
drop_shipping
True if the line item is drop shipped directly from the supplier to the customer
parent_id
Id of the parent line item (set when a document is duplicated or transformed into another)
weight
Position of the line item in the document
description
Description of the line item (used as the title when the line item is a custom product)
temporary_id
Temporary identifier used to link the kit or packaging components to their kit line item
kit_line_item_id
Id of the kit's line item this line item is a component of
type
Type of the variant (kit, assembly, packaging, normal)
batch_numbers
List of the batch numbers allocated to the line item