AlmondTill/G3N API

CreateRtvInput

input type

Create-input for createRtv.

Fields

FieldTypeRequiredNotes
captionStringnoOptional: when omitted the per-type default applies — 'return to vendor <N> line(s)'; when supplied it must be non-blank.
orgVendorIdID ID!yesThe OrgVendor enablement receiving the return (rides the HEADER parentId — lean 2) — tenant-scoped + ACTIVE server-side (an inactive enablement refuses NEW returns while in-flight docs keep transitioning).
purchaseOrderIdIDnoThe OPTIONAL originating PurchaseOrder — must belong to the SAME OrgVendor and be past-issue (a draft/pending/cancelled order shipped nothing to return).
shipFromLogicalFacilityIdID ID!yesThe LF the return ships FROM — tenant-scoped + ACTIVE + the buying org's (SL-b set-time; re-checked at ship).
expectedCreditMoneyEntryInputnoOptional expected vendor credit (in the vendor purchasingCurrency — VALIDATION/INVALID naming both else); omitted ⇒ ship stamps the Σ quantity × CURRENT WMA default.
linesRtvLineInput [RtvLineInput!]!yesThe lines (1..24 — the NAMED ceiling, -m; distinct variant × sourceBucket × bin keys; junctions resolved + stamped server-side).

Used by