AlmondTill/G3N API

NewOrderInput

input type

Create-input to open an Order — a sale/layaway/special_order is born open (the cart IS the open state); a draft/quote is born draft. The org + LF are gated live (active, same group, the LF belongs to the org); the currency snapshots the org defaultCurrency; lines MAY be empty (the ecom cart-birth shape). All four orderType profiles are accepted; a special_order line is variant-keyed with fulfillmentMethod=special_order. validUntil is required on quote (future instant), optional on draft, forbidden elsewhere.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — the channel + line count (pos order 2 lines); when supplied it must be non-blank.
organizationIdID ID!yesThe selling Organization — tenant-scoped + active.
channelOrderChannel OrderChannel!yesOne of the values of [OrderChannel](/types/OrderChannel/).
orderTypeOrderType OrderType!yesAll four profiles accepted; special_order lines are variant-keyed + method-coupled.
validUntilStringnoThe draft/quote validity window end — required iff quote, optional on draft, forbidden elsewhere; must be future at create.
termEndsAtStringnoThe layaway term end: optional on layaway (absent ⇒ no scheduled default), forbidden elsewhere; must be future at create.
logicalFacilityIdID ID!yesThe selling/fulfilling LF — active + belongs to the selling org.
customerOrderCustomerInputnoThe inline customer capture — at least one inline field OR a customer ref.
exemptionCertificateIdIDnoOptional cert ref — same-group + active at attach; at-USE validity re-gated at place.
discountsOrderDiscountInput [OrderDiscountInput!]noOrder-level pre-tax discounts (manual only).
linesOrderLineInput [OrderLineInput!]!yesThe lines (0..45).

Used by