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

## Used by

- [arPay](/reference/selling/arPay/)
- [arWriteoff](/reference/refunds-and-payment-corrections/arWriteoff/)
- [createOrgCustomer](/reference/org-customer/createOrgCustomer/)
- [deactivateOrgCustomer](/reference/org-customer/deactivateOrgCustomer/)
- [doomOrgCustomer](/reference/org-customer/doomOrgCustomer/)
- [orgCustomer](/reference/org-customer/orgCustomer/)
- [reactivateOrgCustomer](/reference/org-customer/reactivateOrgCustomer/)
- [updateOrgCustomer](/reference/org-customer/updateOrgCustomer/)
