AlmondTill/G3N API

OrgCustomer

object type

An OrgCustomer — the per-org selling ENABLEMENT of a group CorporateCustomer, the sell-side mirror of the OrgVendor: an ACTIVE OrgCustomer IS the B2B selling enablement (no B2B terms without one). Parent = the ORGANIZATION (not the family root); the selection IS the (org × corporateCustomer) edge — ≤1 live per pair via the UNIQ pair marker minted IN the create transaction. Terms payload: accountNumber · canned paymentTerms (the registry SHARED with the OrgVendor; NO free-text twin — a born construct starts canned-only) · creditLimit/orderMinimum house Money on the sell-side currency rule (NO local currency field — every money field matches the org's defaultCurrency at set, create AND edit; the OrgVendor's local purchasingCurrency is deliberately NOT mirrored; ENFORCEMENT is credit / minimums) · the customerPriceGroupId carrier (in-tenant + ACTIVE at set — the member-carrier class; the order-time B2B precedence law is; the CPG doom RI gains this SECOND carrier class) · billToContactId/shipToContactId (non-doomed + a LIVE ContactAssignment on THIS customer's host — sell-side counterparty addresses need host-membership integrity, the disclosed OrgVendor divergence). Deactivate FREE (selling paused); doom structurally unblocked EXCEPT live holder ExemptionCertificates. The priceListId carrier is LIVE. MOQ/case enforcement is.

Fields

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The group-scoped human-facing system id (EC-…).
typeString String!The kind of record — always OrgCustomer here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: active | inactive | doomed.
parentIdID ID!The parent Organization; for an OrgCustomer parentId!== rootId.
rootIdID ID!The org-group family root.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID ID!The OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
corporateCustomerIdID ID!The selected group CorporateCustomer — set at creation, IMMUTABLE thereafter.
accountNumberStringOur account/reference number in THE CUSTOMER'S AP system; optional + editable.
paymentTermsStringThe canned payment terms; a non-canned token is VALIDATION/INVALID. NO free-text twin. Optional + editable.
creditLimitMoneyEntryThe credit limit. House Money on the sell-side currency law: must match the org's defaultCurrency at set (NO local currency field). Optional + editable.
orderMinimumMoneyEntryThe order minimum. Same currency law. Optional + editable.
customerPriceGroupIdIDThe CustomerPriceGroup carrier. Optional + editable.
priceListIdIDThe PriceList carrier: the CONTRACT plane feed — a cc-named order resolves its step-1 base from THIS list FIRST (ContractPrice ≻ group list ≻ SalePrice). Gated in-tenant + ACTIVE at set; a SCOPED (contract) list must name THIS OrgCustomer (CONFLICT/REF_STATE naming the scope holder). Optional + editable; a list dying later DEGRADES at capture.
billToContactIdIDThe default bill-to Contact — non-doomed + a LIVE assignment on THIS customer's host (ANY role). Optional + editable.
shipToContactIdIDThe default ship-to Contact — the same host-membership gate. Optional + editable.
codeStringOptional mutable merchant reference code; uniqueness NOT enforced.
arBalanceMinorIntThe CACHED AR ledger sum in minor units. SYSTEM-maintained: READ-only, REFUSED on input (the commissionAgentUserIds custody class — the New/Edit inputs exclude it BY SHAPE). Absent ⇒ 0, no AR history yet.
arCurrencyStringThe AR currency — SYSTEM-stamped at the FIRST AREntry, IMMUTABLE thereafter: every subsequent AR act gates against it, so an org defaultCurrency flip can never blend the cache (multi-currency AR = the named deferral). READ-only, REFUSED on input.

Used by