OrderLineState
A line item within an order
Unique identifier
Tenant ID
Parent order ID
lineNumberInt!Line number within the order
Product ID
productSkuStringProduct SKU
productNameString!Product name
descriptionStringLine item description
quantityInt!Quantity ordered
unitPriceFloat!Unit price
discountPercentFloatDiscount percentage
discountAmountFloatDiscount amount
taxRateFloatTax rate percentage
lineTotalFloat!Line total amount
Linked job ID
Linked estimate line ID
Product template used to configure this order line
Published template version frozen at order time
Customer configuration selections from template configSchema
Currency code
notesStringOptional notes
groupKeyStringGroups related order lines for bundled products
sortOrderInt!Sort order for display
createdAtString!Creation timestamp (ISO8601)
updatedAtString!Last update timestamp (ISO8601)
Parent order. Requires order:read permission.
Product. Requires product:read permission.
Linked job. Requires job:read permission.
File attachments paired to product-template component slots. Requires file:list permission.
View exact SDL
"""A line item within an order"""
type OrderLineState {
"""Unique identifier"""
id: OrderLineID!
"""Tenant ID"""
tenantId: TenantID!
"""Parent order ID"""
orderId: OrderID!
"""Line number within the order"""
lineNumber: Int!
"""Product ID"""
productId: ProductID
"""Product SKU"""
productSku: String
"""Product name"""
productName: String!
"""Line item description"""
description: String
"""Quantity ordered"""
quantity: Int!
"""Unit price"""
unitPrice: Float!
"""Discount percentage"""
discountPercent: Float
"""Discount amount"""
discountAmount: Float
"""Tax rate percentage"""
taxRate: Float
"""Line total amount"""
lineTotal: Float!
"""Linked job ID"""
jobId: JobID
"""Linked estimate line ID"""
estimateLineId: EstimateLineID
"""Product template used to configure this order line"""
productTemplateId: ProductTemplateID
"""Published template version frozen at order time"""
productTemplateVersion: Int
"""Customer configuration selections from template configSchema"""
templateConfig: JSON
"""Currency code"""
currency: CurrencyISO!
"""Optional notes"""
notes: String
"""Groups related order lines for bundled products"""
groupKey: String
"""Sort order for display"""
sortOrder: Int!
"""Creation timestamp (ISO8601)"""
createdAt: String!
"""Last update timestamp (ISO8601)"""
updatedAt: String!
"""Parent order. Requires order:read permission."""
order: OrderState
"""Product. Requires product:read permission."""
product: ProductState
"""Linked job. Requires job:read permission."""
job: JobState
"""
File attachments paired to product-template component slots. Requires file:list permission.
"""
attachments: [OrderLineFileAttachment!]!
}One stable address across all schema views. Follow a field’s type to explore connections between domains.