AlmondTill/G3N API

CreatePurchaseOrderInput

input type

Create-input for createPurchaseOrder.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — 'purchase order <N> line(s)'; when supplied it must be non-blank.
orgVendorIdID ID!yesThe supplying OrgVendor enablement — tenant-scoped + ACTIVE server-side; IMMUTABLE after birth (re-vendor = cancel + new). Its purchasingCurrency SNAPSHOTS as the PO currency (UNSET refuses NAMED — -i).
paymentTermsStringnoOptional canned payment terms (registry tokens, e.g. net-30) — omitted ⇒ the OrgVendor's.
incotermCodeStringnoOptional canned Incoterms 2020 rule — omitted ⇒ the OrgVendor's.
vendorReferenceStringnoOptional vendor-side order/quote reference (max 64).
notesStringnoOptional free-text notes (max 4096).
linesPurchaseOrderLineInput [PurchaseOrderLineInput!]!yesThe lines (1..90 — the PER-CALL ceiling, distinct variant × receiving-LF keys; lineNo assigned 1..N in input order. A bigger order composes: create up to the per-call ceiling, then addPurchaseOrderLines up to 1000 lines on the document).

Used by