EditOrderInput
input type
Edit-input for a Order. Every field optional, at least ONE required; supplied fields replace, omitted fields are preserved. Live-edit-state only: a sale edits while open (held is parked — resume first; post-place content is frozen, the amendment window a strict-OFF hook); a draft/quote edits while draft OR sent. A supplied lines array replaces wholesale and re-runs the full price capture at the edit instant.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
caption | String | no | |
customer | OrderCustomerInput | no | The inline customer capture — at least one inline field OR a customer ref. |
exemptionCertificateId | ID | no | |
discounts | OrderDiscountInput [OrderDiscountInput!] | no | One pre-tax discount entry — amountMinor ⟺ kind amount, percentPpm ⟺ kind percent; reason required. |
validUntil | String | no | Re-set the draft/quote validity window. |
termEndsAt | String | no | Re-set the layaway term end. A termEndsAt-ONLY edit stays legal while placed|accruing (the term is schedule, not content). |
lines | OrderLineInput [OrderLineInput!] | no | The wholesale line replacement (live-edit-state only) — same shape + refinements as create; MAY be emptied (a cleared cart). |