← All types
ReportingOb Object

OrderLineState

A line item within an order

Fields

id

OrderLineID!Non-null

Unique identifier

Tenant ID

Parent order ID

lineNumber

Int!Non-null

Line number within the order

Product ID

Product SKU

Product name

Line item description

quantity

Int!Non-null

Quantity ordered

Unit price

Discount percentage

Discount amount

taxRate

FloatNullable

Tax rate percentage

Line total amount

jobId

JobIDNullable

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

notes

StringNullable

Optional notes

Groups related order lines for bundled products

sortOrder

Int!Non-null

Sort order for display

Creation timestamp (ISO8601)

Last update timestamp (ISO8601)

Parent order. Requires order:read permission.

Product. Requires product:read permission.

job

JobStateNullable

Linked job. Requires job:read permission.

File attachments paired to product-template component slots. Requires file:list permission.

Referenced by (10)
Exact type 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!]!
}