Get a list of contacts
Retrieve a paged collection of contacts (required scope contacts:read)
Query Parameters
Possible values: [name
, createdAt
]
The field to sort items in the page by
Possible values: [ascending
, descending
]
The direction to apply the sort
Possible values: [normal
, contactOnStop
, creditLimitOnStop
]
Only return contacts where status
matches the value provided
Only return contacts where name
matches or starts with the value provided
Only return contacts where reference
matches the value(s) provided
Only return contacts where id
matches the value(s) provided
Only return contacts where parentId
matches the value(s) provided
Only return contacts where groupId
matches the value(s) provided
Possible values: >= 1
and <= 2147483
The page number being requested (minimum: 1, maximum: 2147483)
Possible values: >= 1
and <= 1000
The page size being requested (minimum: 1, maximum: 1000)
Header Parameters
The customer identifier
- 200
- 400
- 403
- 500
Success
Schema
- Array [
- normal: Normal
- contactOnStop: Contact is on stop
- creditLimitOnStop: Credit limit is on stop
- Array [
- boolean: Indicates a boolean field (Example: "false")
- integer: Indicates an integer numeric field (Example: "1001")
- decimal: Indicates a floating point numeric field (Example: "1.42")
- text: Indicates an editable text field (Example: "Purple")
- list: Indicates a field with a single value from a predefined list of options (Example: "Purple")
- statement: Indicates a text field that cannot be edited. The value is always equal to the default value (Example: "By signing this you agree to the following...")
- date: Indicates a date field, which will be represented as an RFC3339 formatted date string. The default value is not supported for this type and will always be null (Example: "2024-01-31")
- note: Indicates a multiline, editable text field. Lines are seperated with a line feed character (Example: "This is a note.")
- time: Indicates a time field, formatted as HH:mm. The default value is not supported for this type and will always be null (Example: "10:30")
- systemList: Indicates the ID of a related resource, vehicle or web user (Example: "228007")
- resource
- vehicle
- webUser
- ]
- ]
items object[]
The items returned for the requested page
The unique identifier of the contact
The UTC timestamp of when this contact was created
The UTC timestamp of when this contact was modified
The internal reference of the contact - should usually be unique
The name of the contact
The unique identifier of the group this contact belongs to
The unique identifier of the parent contact of this contact
A free text description about the contact
The contact street address
The contact address town / city / village / locality
The contact address postcode or zipcode
The textual name of the contact address country
location object
Represents a geographical location
Latitude of the center of the location
Longitude of the center of the location
Possible values: [normal
, contactOnStop
, creditLimitOnStop
]
The status of the contact (if they are on stop)
Possible values:
If the contact status has been set to on stop, a textual description explaining why
The date that this contact was placed on stop
customFields object[]
Custom fields associated with the contact
The unique identifier of the associated custom field definition
The current value set for the custom field
definition object
Represents the definition of a custom field
The caption of a custom field
Possible values: [boolean
, integer
, decimal
, text
, list
, statement
, date
, note
, time
, systemList
]
The type of the custom field. New field types may be added in the future, so integrations should be resilient to this
Possible values:
Shows the possible values for a list type custom field. Value will be null if type is not list
Indicates if the field is required in the UI. This is NOT enforced in the API
Indicates if the field is editable
The default value of a custom field. Formatted in accordance with the rules of the field type
systemListValueMetadata object
Represents details of custom field value of type system list
A descriptive label for the specific resource, vehicle or web user that this system list value relates to
Possible values: [resource
, vehicle
, webUser
]
The type of entity used for custom field value of type system list
Possible values:
The page number of the response where 1 is the first page
The number of items requested for the current page
The number of items returned in the current page
{
"items": [
{
"id": 5514123,
"createdAt": "2022-11-29T16:50:16.0000000+00:00",
"modifiedAt": "2023-09-12T11:24:23.0000000+00:00",
"reference": "5514123",
"name": "Example Company",
"groupId": 5514123,
"parentId": 5514123,
"extraInformation": "Loyal customer for many years",
"street": "3150 Century Way",
"town": "Leeds",
"postalCode": "LS15 6HU",
"country": "England",
"location": {
"latitude": 51.31349,
"longitude": -0.7464233
},
"accountStatus": "normal",
"stopReason": "This customer has not paid for our services and won't return calls",
"stoppedAt": "2023-09-12",
"customFields": [
{
"definitionId": 5514123,
"value": "Purple",
"definition": {
"caption": "Favourite colour",
"type": "boolean",
"listOptions": [
"Red",
"Blue",
"Green",
"Purple"
],
"isRequired": true,
"isEditable": true,
"default": "10"
},
"systemListValueMetadata": {
"label": "John Doe",
"entityType": "resource"
}
}
]
}
],
"pageNumber": 2,
"pageSize": 100,
"pageItemCount": 55
}
Bad Request
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Forbidden
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}
Server Error
Schema
A URI reference [RFC3986] that identifies the problem type
A short, human-readable summary of the problem type
The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem
A human-readable explanation specific to this occurrence of the problem
A URI reference that identifies the specific occurrence of the problem
{
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit",
"status": 403,
"detail": "Your current balance is 30, but that costs 50",
"instance": "/account/12345/msgs/abc"
}