ZRM Docs
API ReferenceCustomer

customer.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
legalNamestringYesLegal name
displayNamestringYesDisplay name
customerTypeenum(prospect, active, partner)YesCustomer type
industrySegmentenum(corporate, retail, hospitality, healthcare, education, government, residential, industrial, financial, other)NoIndustry segment
statusenum(active, inactive, suspended, churned)Yes"active"Status
customerSincestring.date-timeNoCustomer since
contractTermsobjectNoContract terms
billingPreferencesobjectNoBilling preferences
taxProfileobjectNoTax profile
healthScoreintegerNoHealth score
annualRevenueunknownNoAnnual revenue
ownerUserIdstringNoID of the associated owner user
parentCustomerIdstringNoID of the associated parent customer
notesSummarystringNoNotes summary
accountNumberstringNoAccount number
websitestring.uriNoWebsite
primaryPhonestringNoPrimary phone
primaryEmailstring.emailNoPrimary email
faxNumberstringNoFax number
physicalAddressobjectNoPhysical address
mailingAddressobjectNoMailing address
billingAddressobjectNoBilling address
paymentTermsenum(net_15, net_30, net_45, net_60, net_90, due_on_receipt, custom)NoPayment terms
taxExemptbooleanYesfalseTax exempt
creditLimitunknownNoCredit limit
sourceenum(referral, web, trade_show, cold_call, partner, other)NoSource
referredBystringNoReferred by
workspaceIdstringNoID of the associated workspace
visibilityModeenum(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"
}

On this page