Get clients
This endpoint retrieves a list of clients that the user has permission to access, which can be filtered by various parameters. The response data will be an array of objects with each object being the data for one client.
Query parameters
-
Specifies the page number of results to retrieve.
Minimum value is
1
. Default value is1
. -
Specifies the number of results per page.
Minimum value is
1
, maximum value is100
. Default value is100
. -
Filter clients by first name.
-
Filter clients by surname.
-
Filter clients by National Insurance Number.
-
Filter clients by client reference.
-
Filter clients by postcode.
-
If set to any value, formatted values will be excluded from the response.
GET
/api/v2/clients
curl \
--request GET 'https://api.fincalc.co.uk/api/v2/clients' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"success": true,
"data": [
{
"ClientGUID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"FirstName": "John",
"Surname": "Smith",
"Gender": 1,
"DateOfBirth": "1990-05-04",
"AddressPostCode": "SW1A 1AA",
"Reference": "API Client",
"AdviserUserGUID": "string",
"BackOfficeID": "3F0B1C88-6D80-4C17-BB3E-1D68E6D26405",
"FormattedValues": {
"Gender": "Male",
"DateOfBirth": "04/05/1990",
"AdviserUserGUID": "Jonathan Thomas"
}
}
],
"meta": {
"CurrentPage": 2,
"PageSize": 5,
"HasPreviousPage": true,
"HasNextPage": true,
"Links": {
"PreviousPage": "https://api.fincalc.co.uk/api/v2/clients?PageSize=5&PageNumber=1",
"NextPage": "https://api.fincalc.co.uk/api/v2/clients?PageSize=5&PageNumber=3"
}
}
}