Deze referentie is alleen in het Engels. Naar het Nederlandse REST API-overzicht

Diese Referenz gibt es nur auf Englisch. Zur deutschen REST-API-Übersicht

Cette référence existe uniquement en anglais. Aller à la présentation de l'API REST en français

Esta referencia solo está en inglés. Ir a la introducción de la API REST en español

Customer

Customer

A customer: the CRM record every project, contact, subscription and sales invoice hangs off.

View as Markdown
Summary view
CustomerList, 36 fields. What a list returns by default.
Detail view
Customer, 36 fields. The default for a single read and for every write.

Soft-deleted, and deleting one cascades to its projects.

Used by

GETRead a customer/customers/{customer}Customer
PATCHUpdate a customer/customers/{customer}Customer
POSTRestore a deleted customer/customers/{customer}/actions/restoreCustomer

Fields

Detail only
Only in the detail view.
Only with include
Only when you ask for it with include.
Server-assigned
Set by plnnrly, never by a request.
idinteger

Unique identifier.

namestring≤ 255

Customer name. This is the default sort key and one of the fields ?q= searches.

codestring≤ 255

Short customer code, e.g. ACM. Prefixes every work item's issue key, is enforced unique on write, and is one of the fields ?q= searches.

colorstring≤ 255

Chip colour as a CSS hex triplet or sextet, e.g. #1d4ed8. A stored value that is not valid hex reads back as #6b7280.

statusstring

Where the customer sits in the sales lifecycle.

suspectprospectfuture-opportunityactiveinactive

New values may be added.

emailstring or null≤ 255

Primary email address. The third field ?q= searches; not unique.

phonestring or null≤ 255

Phone number.

addressstring or null≤ 255

Street address. Writing this, zip or city re-geocodes lat and lng.

zipstring or null≤ 255

Postal code.

citystring or null≤ 255

City.

Variants

CustomerList 36 fields

What a collection returns, and what ?view=summary returns on a single record.

The same fields as the detail object.

Columns deliberately not published

exact_sync_issuesHolds free-form sync messages with no stable shape, so it has no honest published type. exact_synced_at is published instead, so a client can still tell whether a sync has run.
locationNot stored on its own: it combines lat and lng, both of which are published as their own read-only fields.