← All types
In Input object

UpsertOrderLineInput

Input for creating or updating an order line

Fields

Optional ID for updates

Parent order ID

lineNumber

Int!Required

Line number within the order

Product ID

Product SKU

Product name

Line item description

quantity

Int!Required

Quantity ordered

Unit price

Discount percentage

Discount amount

taxRate

FloatOptional

Tax rate percentage

Line total amount

jobId

JobIDOptional

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

Currency code

notes

StringOptional

Optional notes

Groups related order lines for bundled products

sortOrder

IntOptional

Sort order for display

File attachments per component slot. When set, replaces existing attachments on update.

Override creation timestamp (ISO8601). Honored only on create — passing on update is rejected.

Override update timestamp (ISO8601). Honored on create or update; defaults to now.

Referenced by (2)
Exact type SDL
"""Input for creating or updating an order line"""
input UpsertOrderLineInput {
  """Optional ID for updates"""
  id: OrderLineID
  """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"""
  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
  """
  File attachments per component slot. When set, replaces existing attachments on update.
  """
  attachments: [OrderLineFileAttachmentInput!]
  """
  Override creation timestamp (ISO8601). Honored only on create — passing on update is rejected.
  """
  createdAt: ISO8601
  """
  Override update timestamp (ISO8601). Honored on create or update; defaults to now.
  """
  updatedAt: ISO8601
}