Appearance
getAddressesForDirectoryContact ​
Returns a list of Contact Addresses for a given Contact in a Directory, normally for the purposes of viewing/updating.
Request ​
http
GET /rest/smartdirectory/{directoryUUID}/contactRecord/addressesHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
directoryUUID - String. UUID of the Smart Directory as set up in SAM.
Response ​
200 OK ​
json
[
{
"uuid":"75594f4e-d053-4c93-b045-d013d4aea3c0",
"type":"Work",
"typeCode":"W",
"name":"Address 1 Name",
"street":"Address 1 Street",
"city":"Address 1 City",
"suburb":"Address 1 Suburb",
"stateCode":"AU-NSW",
"state":"New South Wales",
"postcode":"2000",
"countryCode":"AU",
"country":"AUSTRALIA",
"email":"test@test.com",
"phone":"phone",
"fax":"fax",
"mobile":"mobile",
"department":"department",
"division":"division",
"jobTitle":"jobTitle"
},
{ "uuid":"75594f4e-d053-4c93-b045-d013d4aea111",
"type":"Personal",
"typeCode":"P",
"name":"Address 2 Name",
"street":"Address 2 Street",
"city":"Address 2 City",
"suburb":"Address 2 Suburb",
"stateCode":"AU-NSW",
"state":"New South Wales",
"postcode":"2000",
"countryCode":"AU",
"country":"AUSTRALIA",
"email":"test@test.com",
"phone":"phone 2",
"fax":"fax 2",
"mobile":"mobile 2",
"department":"department 2",
"division":"division2",
"jobTitle":"jobTitle2" }
]Errors ​
| Exception | Description |
|---|---|
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSInvalidParameterException | See Error Definitions |
WSSmartDirectoryNotFoundException | See Error Definitions |
WSSmartDirectoryServiceException | See Error Definitions |
WSUserNotConsentedException | See Error Definitions |
WSSmartDirectoryNotEnabledForCompanyException | See Error Definitions |
WSUserContactNotFoundException | See Error Definitions |
WSUserNotInSmartDirectoryException | See Error Definitions |
WSSmartDirectoryInactiveException | See Error Definitions |
WSAddressServiceException | See Error Definitions |
WSNoAddressFieldsInDirectoryException | See Error Definitions |