Appearance
UpsertOrderInput
Type: Input
Input for creating or updating an order
Fields
| Name | Type | Default | Description |
|---|---|---|---|
| billingAddressId | AddressID | Billing address ID | |
| cancelledAt | ISO8601 | Cancellation timestamp (ISO8601) | |
| completedAt | ISO8601 | Completion timestamp (ISO8601) | |
| confirmedAt | ISO8601 | Confirmation timestamp (ISO8601) | |
| contactId | ContactID | Contact ID | |
| createdAt | ISO8601 | Override creation timestamp (ISO8601). Honored only on create — passing on update is rejected. | |
| createdByUserId | UserID | User who created the order | |
| currency | CurrencyISO | Currency code | |
| customerId | CustomerID | Customer ID | |
| estimateId | EstimateID | Linked estimate ID | |
| externalId | String | External system reference | |
| id | OrderID | Optional ID for updates | |
| internalNotes | String | Internal notes | |
| notes | String | Customer-visible notes | |
| orderDate | ISO8601 | Order date (ISO8601) | |
| orderNumber | String! | Order number | |
| paymentStatus | PaymentStatus | Payment status | |
| poReference | String | Purchase order reference | |
| promisedDeliveryDate | ISO8601 | Promised delivery date (ISO8601) | |
| requiredDeliveryDate | ISO8601 | Required delivery date (ISO8601) | |
| shippingAddressId | AddressID | Shipping address ID | |
| shippingCost | Float | Shipping cost | |
| shippingMethod | String | Shipping method | |
| status | OrderStatus | Order status | |
| subtotalAmount | Float | Subtotal amount before tax | |
| tags | [String!] | Tags for categorization | |
| taxAmount | Float | Tax amount | |
| taxRate | Float | Tax rate percentage | |
| totalAmount | Float | Total amount including tax | |
| updatedAt | ISO8601 | Override update timestamp (ISO8601). Honored on create or update; defaults to now. |