Space Docs
API ReferenceCustomer

customer.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
legalNamestringYesLegal name
displayNamestringYesDisplay name
customerTypeenum(prospect, active, partner)YesCustomer type
verticalunknownNoVertical
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
parentCustomerIdunknownNoID 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
siteobjectNoSite

Example

{
  "legalName": "example",
  "displayName": "example",
  "customerType": "prospect",
  "vertical": null,
  "industrySegment": "corporate",
  "status": "active",
  "taxExempt": false,
  "visibilityMode": "global"
}

On this page