List of contacts by IDs
GET {{baseUrl}}/contacts/:contactId?relationships=false
Returns one or more contacts by given contact IDs
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 objects that will contain a combination of the below keys
Key | Datatype | Mandatory | Constraints |
---|---|---|---|
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 'Joint Member'. 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 |
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
relationships | boolean | [optional] response will not include relationships if parameter not used |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string |
RESPONSES
status: OK
[{"id":54,"name":"Fancy Southern Africa Cat Council","contactType":"Company","email":"","mobile":"","phone1":null,"phone2":null,"taxNumber":null,"businessNumber":null,"companyNumber":"111111114","addressId":15,"representativeIds":null,"incorporationDate":null,"placeOfIncorporation":"AUSTRALIA","firstName":null,"middleName":null,"lastName":null,"title":null,"sex":null,"birthday":null,"birthPlace":null,"birthState":null,"birthCountry":null,"skype":null,"nationality":null},{"id":555742,"name":"Anne Smith","contactType":"People","email":"anne@bgglcorp.com.au","mobile":"","phone1":null,"phone2":null,"taxNumber":null,"businessNumber":null,"companyNumber":null,"addressId":172509,"representativeIds":null,"incorporationDate":null,"placeOfIncorporation":null,"firstName":"Anne","middleName":null,"lastName":"Smith","title":null,"sex":null,"birthday":"1958-07-02","birthPlace":"Phillip Island","birthState":"VIC","birthCountry":"AUSTRALIA","skype":null,"nationality":null}]