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
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The group-scoped human-facing system id (EC-…). |
type | String String! | The kind of record — always OrgCustomer here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: active | inactive | doomed. |
parentId | ID ID! | The parent Organization; for an OrgCustomer parentId!== rootId. |
rootId | ID ID! | The org-group family root. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
refCaptions | RefCaption [RefCaption!]! | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
corporateCustomerId | ID ID! | The selected group CorporateCustomer — set at creation, IMMUTABLE thereafter. |
accountNumber | String | Our account/reference number in THE CUSTOMER'S AP system; optional + editable. |
paymentTerms | String | The canned payment terms; a non-canned token is VALIDATION/INVALID. NO free-text twin. Optional + editable. |
creditLimit | MoneyEntry | The credit limit. House Money on the sell-side currency law: must match the org's defaultCurrency at set (NO local currency field). Optional + editable. |
orderMinimum | MoneyEntry | The order minimum. Same currency law. Optional + editable. |
customerPriceGroupId | ID | The CustomerPriceGroup carrier. Optional + editable. |
priceListId | ID | The 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. |
billToContactId | ID | The default bill-to Contact — non-doomed + a LIVE assignment on THIS customer's host (ANY role). Optional + editable. |
shipToContactId | ID | The default ship-to Contact — the same host-membership gate. Optional + editable. |
code | String | Optional mutable merchant reference code; uniqueness NOT enforced. |
arBalanceMinor | Int | The 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. |
arCurrency | String | The 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. |