Customer Contacts

Customer contacts can exist in two forms:

  • Direct contacts - Linked to a specific customer (customerID is set)
  • Shared contacts - Not linked to any specific customer (customerID is null) and can be associated with multiple customers

Methods

GET

Retrieve Single Customer Contact

/backend/api/v1/customerContacts/ID - fetch customer contact with specified ID.

List Customer Contacts

/backend/api/v1/customerContacts/ - list all customer contacts (both direct and shared).

/backend/api/v1/customers/ID/customerContacts/ - list all contacts belonging to customer with specified ID (includes both direct contacts and linked shared contacts).

Additional Query Parameters
ParameterTypeRequiredDescription
dealerCodestringNoFilter shared contacts by dealer code

POST

/backend/api/v1/customerContacts/ - create a new shared contact (customerID will be null).

/backend/api/v1/customers/ID/customerContacts/ - create a new contact directly linked to the specified customer.

To link an existing shared contact to a customer, use the addSharedContact action on the customer endpoint.

PATCH

/backend/api/v1/customerContacts/ID - update customer contact with specified ID. The modified contact will be returned.

DELETE

/backend/api/v1/customerContacts/ID - delete customer contact with specified ID.

Note: Direct contacts are automatically deleted when their parent customer is deleted. Shared contacts persist even when linked customers are deleted.

Actions

Available Actions

convertToSharedContact

Convert a direct customer contact into a shared contact. This removes the direct link to the customer (sets customerID to null) but maintains the contact’s association with the original customer as a shared contact. The contact can then be shared with other customers as well.

Example:

curl -X POST https://example.com/backend/api/v1/customerContacts/123?action=convertToSharedContact \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

Fields

FieldNameTypeDescription
contactTypeContact TypePreset ValueType or role of this contact within the customer organisation
titleTitlePreset ValueContact title (e.g., Mr, Mrs, Ms)
companyNameCompany NameTextName of the company or organisation this contact represents
address1Address Line 1TextFirst line of contact address
address2Address Line 2TextSecond line of contact address
address3Address Line 3TextThird line of contact address
address4Address Line 4TextFourth line of contact address (typically city)
address5Address Line 5TextFifth line of contact address (typically county/state)
postcodePostcodeTextPostal/zip code for contact address
countryCountryPreset ValueCountry code for contact location
number1typeNumber 1 TypePreset ValueType of the first contact number
number2typeNumber 2 TypePreset ValueType of the second contact number
number3typeNumber 3 TypePreset ValueType of the third contact number
number4typeNumber 4 TypePreset ValueType of the fourth contact number
emailEmail AddressTextEmail address for the contact
websiteWebsiteTextWebsite URL for the contact
accountPasswordAccount PasswordTextPassword for contact account access
contactPositionPositionTextJob title or position of the contact within the company
dealerCodeDealer CodePreset ValueDealer code associated with this customer contact
contactRegardingContact RegardingPreset Value(s)Topics or areas this contact should be contacted about
emailBillTypeCopy Email BillPreset ValueName of the bill type to generate for email delivery
invoiceUsageReportCustomerProfileInvoice Usage ReportPreset ValueUsage report configuration for invoices sent to this contact
copyCorrespondenceTypeIDsCopy CorrespondencePreset Value(s)Array of correspondence type names that should be copied to this contact
copyTicketTypeIDsCopy Ticket UpdatesPreset Value(s)Array of ticket type names that should be copied to this contact
idCustomer Contact IDTextThe unique identifier for this customer contact
customerIDCustomerTextThe ID of the customer this customer contact belongs to. Will be null for a shared contact.

Notes on Shared Contacts

Shared contacts provide a way to manage contacts that need to be associated with multiple customers. Common use cases include:

  • Accountants who manage multiple customer accounts
  • Group company contacts who oversee several related businesses
  • Third-party service providers

When listing contacts for a customer via /backend/api/v1/customers/ID/customerContacts/, the response includes:

  1. All direct contacts where customerID matches the specified customer
  2. All shared contacts that have been linked to the customer

To manage shared contact relationships, use the customer endpoint actions:

  • addSharedContact - Link a shared contact to a customer
  • removeSharedContact - Remove the link between a shared contact and a customer

Still Didn’t Find Your Answer?

For assistance, please contact us below.

Submit a ticket