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