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 · creditLimit/orderMinimum house Money on the sell-side currency rule · the customerPriceGroupId carrier · 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 human-readable id, shaped like EC-… — stable for the record’s life.
typeString String!The kind of record — always OrgCustomer here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of active, inactive or doomed.
parentIdID ID!The parent Organization; for an OrgCustomer parentId!== rootId.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
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 id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — 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. 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. 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. 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. Read-only, refused on input.

Used by