Lines (Order Lines)

Order line items - products/articles in an order.

Fields

Field Type Required Version Legacy Name Description
article_id integer No 1.0 articleId Reference to Article
article_name string No 1.0   Denormalized article name
quantity float No 1.0 quantity Quantity ordered
net_amount float No 1.0   Net amount (excl. tax)
gross_amount float No 1.0   Gross amount (incl. tax)
discount_amount float No 1.0 discountAmount Discount amount applied
discount_pct float No 1.0 discountPct Discount percentage
price_group_id integer No 1.0   Reference to price group
price_group_name string No 1.0   Denormalized price group name
account_id integer No 1.0   Reference to Account
line_item_guid guid No 1.0   Unique line item identifier
line_added_time date No 1.0   Timestamp when line was added
parent_solid string No 1.0 parentSolid Parent solid reference (for modifiers)
comment string No 1.0 comment Line item comment/note

Example

{
  "article_id": 5001,
  "article_name": "Burger Deluxe",
  "quantity": 2.0,
  "net_amount": 238.40,
  "gross_amount": 298.00,
  "discount_amount": 0.0,
  "discount_pct": 0.0,
  "price_group_id": 10,
  "price_group_name": "Standard",
  "account_id": 3000,
  "line_item_guid": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "line_added_time": "2024-12-03T18:05:00Z",
  "parent_solid": null,
  "comment": "No onions"
}

Example with Modifier

{
  "article_id": 5002,
  "article_name": "Extra Cheese",
  "quantity": 1.0,
  "net_amount": 16.00,
  "gross_amount": 20.00,
  "discount_amount": 0.0,
  "discount_pct": 0.0,
  "price_group_id": 10,
  "price_group_name": "Standard",
  "account_id": 3000,
  "line_item_guid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
  "line_added_time": "2024-12-03T18:05:15Z",
  "parent_solid": "BURGER-001",
  "comment": null
}