Lines (Order Lines)
Lines contain the articles sold, with quantity, prices, discounts, and other details. The order lines constitute the revenue registered in POS. Lines are embedded within the order document.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
solid | integer | Yes | Unique line number. |
article_id | integer | Yes | Reference to Article sold. |
article_name | string | Yes | Name of the article (denormalized). |
article_ext_num | string | No | Reference to external article number (PLU or similar). |
quantity | float | Yes | Quantity sold. |
tax_pct_value | integer | Yes | Tax (VAT) percentage. |
net_amount | float | Yes | Net amount (excluding tax). |
gross_amount | float | Yes | Gross amount (including tax). |
base_net_amount | float | No | Base net amount before modifiers. |
base_gross_amount | float | No | Base gross amount before modifiers. |
total_net_amount | float | No | Total net amount for line including optional children (modifiers). |
total_gross_amount | float | No | Total gross amount for line including optional children (modifiers). |
discount_amount | float | No | Discount amount applied. |
discount_pct | float | No | Discount percentage. |
cost_price | float | No | Cost price (net) at time order was sold. |
price_group_id | integer | No | Reference to price group. |
price_group_name | string | No | Name of price group applied for the order line (denormalized). |
account_id | integer | No | Reference to Account for GL posting. |
line_item_guid | guid | No | Unique GUID for the line item. |
line_added_time | datetime | No | Timestamp when line was added to order. |
parent_solid | integer | No | Reference to parent line for child line items (modifiers). |
comment | string | No | Comment/note on the line item. |
Parent-Child Relationship (Modifiers)
Lines can have a parent-child relationship for modifiers. When a product has add-ons or modifications:
- The main product is the parent line
- Modifiers reference the parent via
parent_solid total_net_amountandtotal_gross_amounton the parent include all child amountsbase_net_amountandbase_gross_amountshow the original parent amounts before modifiers
Example - Simple Line
json
{
"solid": 380019009,
"article_id": 584758,
"article_ext_num": "4202",
"article_name": "Latte",
"quantity": 1,
"tax_pct_value": 15,
"net_amount": 54.78,
"gross_amount": 63,
"base_net_amount": 54.78,
"base_gross_amount": 63,
"total_net_amount": 54.78,
"total_gross_amount": 63,
"discount_amount": 0,
"account_id": 35116,
"cost_price": 0,
"line_item_guid": "b33f64cd-2829-4b6b-a269-ca9bc3ad714f",
"line_added_time": "2026-01-20T06:54:36",
"comment": "Enkel\r\nLettmelk\r\n"
}Example - Parent Line with Modifiers
Main product with modifiers showing the parent-child relationship:
Parent Line (Latte):
json
{
"solid": 380019033,
"article_id": 584758,
"article_ext_num": "4202",
"article_name": "Latte",
"quantity": 1,
"tax_pct_value": 15,
"net_amount": 54.78,
"gross_amount": 63,
"base_net_amount": 54.78,
"base_gross_amount": 63,
"total_net_amount": 73.91,
"total_gross_amount": 85,
"account_id": 35116,
"line_item_guid": "1a3f77cc-26cb-45ae-9caa-7ad9c09d04c3",
"line_added_time": "2026-01-20T07:02:36"
}Child Line (Modifier - Extra Shot):
json
{
"solid": 380019035,
"article_id": 590397,
"article_name": "Ekstra shot",
"quantity": 1,
"tax_pct_value": 15,
"net_amount": 8.7,
"gross_amount": 10,
"base_net_amount": 8.7,
"base_gross_amount": 10,
"total_net_amount": 8.7,
"total_gross_amount": 10,
"account_id": 35116,
"parent_solid": 380019033,
"line_item_guid": "be79c848-e983-474f-a85c-82355df8d49a",
"line_added_time": "2026-01-20T07:02:40"
}Child Line (Modifier - Syrup):
json
{
"solid": 380019034,
"article_id": 585437,
"article_ext_num": "4213",
"article_name": "Karamel sirup",
"quantity": 1,
"tax_pct_value": 15,
"net_amount": 10.43,
"gross_amount": 12,
"base_net_amount": 10.43,
"base_gross_amount": 12,
"total_net_amount": 10.43,
"total_gross_amount": 12,
"account_id": 35116,
"parent_solid": 380019033,
"line_item_guid": "f13005b5-1707-4256-b932-e9a6a4293aaa",
"line_added_time": "2026-01-20T07:02:40"
}Note: The parent's total_gross_amount (85) = parent's gross_amount (63) + children's gross_amount (10 + 12).