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
| 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 human-readable id, shaped like EC-… — stable for the record’s life. |
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 record’s current state — one of active, inactive or doomed. |
parentId | ID ID! | The parent Organization; for an OrgCustomer parentId!== rootId. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
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 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. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — 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. 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. 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. 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. Read-only, refused on input. |