API ReferenceCustomer
customer.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| legalName | string | Yes | — | Legal name |
| displayName | string | Yes | — | Display name |
| customerType | enum(prospect, active, partner) | Yes | — | Customer type |
| industrySegment | enum(corporate, retail, hospitality, healthcare, education, government, residential, industrial, financial, other) | No | — | Industry segment |
| status | enum(active, inactive, suspended, churned) | Yes | "active" | Status |
| customerSince | string.date-time | No | — | Customer since |
| contractTerms | object | No | — | Contract terms |
| billingPreferences | object | No | — | Billing preferences |
| taxProfile | object | No | — | Tax profile |
| healthScore | integer | No | — | Health score |
| annualRevenue | unknown | No | — | Annual revenue |
| ownerUserId | string | No | — | ID of the associated owner user |
| parentCustomerId | string | No | — | ID of the associated parent customer |
| notesSummary | string | No | — | Notes summary |
| accountNumber | string | No | — | Account number |
| website | string.uri | No | — | Website |
| primaryPhone | string | No | — | Primary phone |
| primaryEmail | string.email | No | — | Primary email |
| faxNumber | string | No | — | Fax number |
| physicalAddress | object | No | — | Physical address |
| mailingAddress | object | No | — | Mailing address |
| billingAddress | object | No | — | Billing address |
| paymentTerms | enum(net_15, net_30, net_45, net_60, net_90, due_on_receipt, custom) | No | — | Payment terms |
| taxExempt | boolean | Yes | false | Tax exempt |
| creditLimit | unknown | No | — | Credit limit |
| source | enum(referral, web, trade_show, cold_call, partner, other) | No | — | Source |
| referredBy | string | No | — | Referred by |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"legalName": "example",
"displayName": "example",
"customerType": "prospect",
"industrySegment": "corporate",
"status": "active",
"customerSince": "2024-01-15T09:00:00.000Z",
"taxExempt": false,
"visibilityMode": "global"
}