UpsertOrderLineInput
Input for creating or updating an order line
Optional ID for updates
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
Currency code
notesStringOptional notes
groupKeyStringGroups related order lines for bundled products
sortOrderIntSort 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.
View exact 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
}One stable address across all schema views. Follow a field’s type to explore connections between domains.