# CorporateCustomer

object type

A CorporateCustomer — WHO the merchant SELLS TO on business terms: the shared B2B customer MASTER, the sell-side mirror of the Vendor supplier master. Group-parented + deliberately thin (caption = the trading name · legalName · taxId · code): contact data + buyers ride the Contact/ContactAssignment family (a CorporateCustomer is an assignment HOST — buyers are purchasing-buyer-role assignments); the org-specific commercial payload (terms · credit · price group · addresses) IS the OrgCustomer relationship (an active OrgCustomer = the B2B selling enablement — the OrgVendor mirror). SEARCHABLE (a customer book you can't search by name fails its purpose — the law). Doom is blocked by NON-doomed OrgCustomer selections and LIVE hosted ContactAssignments; open ORDERS naming the customer never block — order refs re-validate FRESH at place. NOT an identity class (buyer auth/portal is); the customer hierarchy (parent company) is a NAMED deferral.

## 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 (CU-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `CorporateCustomer` 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 org group; for a CorporateCustomer 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. |
| `legalName` | [String](/types/#scalars) | The registered legal name; optional + editable. |
| `taxId` | [String](/types/#scalars) | The business tax identifier — a plain bounded string; jurisdictional format validation is deliberately later. Optional + editable. |
| `code` | [String](/types/#scalars) | Optional mutable merchant reference code; uniqueness NOT enforced. |

## Used by

- [corporateCustomer](/reference/corporate-customer/corporateCustomer/)
- [createCorporateCustomer](/reference/corporate-customer/createCorporateCustomer/)
- [deactivateCorporateCustomer](/reference/corporate-customer/deactivateCorporateCustomer/)
- [doomCorporateCustomer](/reference/corporate-customer/doomCorporateCustomer/)
- [reactivateCorporateCustomer](/reference/corporate-customer/reactivateCorporateCustomer/)
- [updateCorporateCustomer](/reference/corporate-customer/updateCorporateCustomer/)
