Appearance
UpsertOrderLineInput
Type: Input
Input for creating or updating an order line
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| attachments | [OrderLineFileAttachmentInput!] | File attachments per component slot. When set, replaces existing attachments on update. | |
| createdAt | ISO8601 | Override creation timestamp (ISO8601). Honored only on create — passing on update is rejected. | |
| currency | CurrencyISO | Currency code | |
| description | String | Line item description | |
| discountAmount | Float | Discount amount | |
| discountPercent | Float | Discount percentage | |
| estimateLineId | EstimateLineID | Linked estimate line ID | |
| groupKey | String | Groups related order lines for bundled products | |
| id | OrderLineID | Optional ID for updates | |
| jobId | JobID | Linked job ID | |
| lineNumber | Int! | Line number within the order | |
| lineTotal | Float! | Line total amount | |
| notes | String | Optional notes | |
| orderId | OrderID | Parent order ID | |
| productId | ProductID | Product ID | |
| productName | String! | Product name | |
| productSku | String | Product SKU | |
| productTemplateId | ProductTemplateID | Product template used to configure this order line | |
| productTemplateVersion | Int | Published template version frozen at order time | |
| quantity | Int! | Quantity ordered | |
| sortOrder | Int | Sort order for display | |
| taxRate | Float | Tax rate percentage | |
| templateConfig | JSON | Customer configuration selections | |
| unitPrice | Float! | Unit price | |
| updatedAt | ISO8601 | Override update timestamp (ISO8601). Honored on create or update; defaults to now. |