List of Contacts
GET {{baseUrl}}/contacts?offset={{offset}}&limit={{limit}}&relationships=false
Returns the list of all contacts for a firm
Query Parameters
Form Parameter | type | Mandatory | Description |
---|---|---|---|
offset | number | Required | Example = 0 |
limit | number | Required | Example = 500 |
relationships | Optional | True/False - Include contact relationships |
Response Body
Returns a list of object as defined below
Key | Datatype | Mandatory | Constraints |
---|---|---|---|
id | Number | Yes | |
contactType | String | Yes | Must be one of 'People'/'Company'/Other Entity’/’Joint Member’ |
firstName | String | Yes | Only mandatory if the contactType is 'People' |
middleName | String | No | Only allowed if contactType is 'People' |
lastName | String | Yes | Only mandatory if the contactType is 'People' |
name | String | Yes | Only mandatory if the contactType is 'Company'/'Other Entity' |
addressId | Number | Yes | Will be ignored if the contactType is 'People'. Must be a valid existing addressId |
representativeIds | List of Numbers | Yes | Only mandatory if the contactType is 'Joint Member'. Can only contain contactIds of non Joint Members |
title | String | No | Only allowed if contactType is 'People' |
sex | String | No | Only allowed if contactType is 'People'. Must be one of 'Male'/'Female' |
String | No | ||
mobile | String | No | |
phone1 | String | No | |
phone2 | String | No | |
taxNumber | String | No | |
birthday | String | No | Only allowed if contactType is 'People'. ISO 8601 date https://en.wikipedia.org/wiki/ISO_8601 |
birthPlace | String | No | Only allowed if contactType is 'People' |
birthState | String | No | Only allowed if contactType is 'People'. Must be one of 'ACT'/'NSW'/'VIC'/'QLD'/'SA'/'WA'/'TAS'/'NT'/'Foreign' |
birthCountry | String | No | Only allowed if contactType is 'People'. ISO 3166 country code/name https://en.wikipedia.org/wiki/ISO_3166 |
skype | String | No | Only allowed if contactType is 'People' |
companyNumber | String | No | Only allowed if the contactType is one of 'Company'/'Other Entity' |
businessNumber | String | No | Only allowed if the contactType is one of 'Company'/'Other Entity' |
placeOfIncorportaion | String | No | Only allowed if the contactType is one of 'Company'/'Other Entity'. ISO 3166 country code/name https://en.wikipedia.org/wiki/ISO_3166 |
incorporationDate | String | No | Only allowed if the contactType is one of 'Company'/'Other Entity'. ISO 8601 date https://en.wikipedia.org/wiki/ISO_8601 |
type | String | No | Only allowed if the contactType is 'Other Entity'. Must be one of ‘OTHER', 'SMSF', 'PARTNERSHIP' and 'TRUST' Wll only appear for Other Entity contacts |
nationality | String | No | ISO 3166 country code/name https://en.wikipedia.org/wiki/ISO_3166 e.g AU |
relationships | Array | No |
Relationships array
Key | Datatype | Comment |
---|---|---|
endDate | Date | |
parentId | String | |
parentType | String | |
startDate | Date | |
type | String |
Additional keys
Key | Datatype | Mandatory | Constraints |
---|---|---|---|
offset | Number | Yes | |
limit | Number | Yes | |
total | Number | Yes |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
offset | string | ||
limit | string | ||
relationships | boolean | [optional] response will not include relationships if parameter not used |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
{"contacts":[{"addressId":1994,"birthCountry":"SOUTH AFRICA","birthPlace":"Gregoria","birthState":"Foreign","birthday":"1970-07-01","businessNumber":null,"companyNumber":null,"contactType":"People","email":null,"firstName":"Jeevan","id":3760,"incorporationDate":null,"lastName":"Tokhi","mobile":null,"name":"Jeevan Tokhi","phone1":null,"phone2":null,"placeOfIncorporation":null,"representativeIds":null,"sex":null,"skype":null,"taxNumber":null,"title":null,"nationality":"AUSTRALIAN"},{"addressId":1995,"birthCountry":"AUSTRALIA","birthPlace":"FERNEY","birthState":"QLD","birthday":"1952-09-09","businessNumber":null,"companyNumber":null,"contactType":"People","email":null,"firstName":"John","id":3761,"incorporationDate":null,"lastName":"Smith","mobile":null,"name":"John Smith","phone1":null,"phone2":null,"placeOfIncorporation":null,"representativeIds":null,"sex":"Male","skype":null,"taxNumber":null,"title":"Mr","nationality":"AUSTRALIAN"}],"limit":500,"offset":0,"total":2}