Appearance
getAddressForDirectoryContact ​
Returns a single Contact Address for a given Contact in a given Directory, normally for the purposes of viewing/updating.
Request ​
http
GET /rest/smartdirectory/{directoryUUID}/contactRecord/addresses/{addressUUID}Headers ​
| 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. addressUUID - String. UUID of a Contact Address.
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"
}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 |
WSContactNotFoundException | See Error Definitions |
WSAddressNotFoundException | See Error Definitions |
WSNoAddressFieldsInDirectoryException | See Error Definitions |