GET api/Contacts/{id}/Name

Retrieves the formatted name for a contact.

Request

Parameters

Name Description Default
id Contact number (unique ID).
format Desired format for the name. ShortName

Response

Body

Content Type: application/xml or application/json
Formatted contact name or an error message.

XML JSON
<Response>                     
  <Result>string</Result>      <!--Formatted contact name--> 
  <Message>string</Message>    <!--Error message--> 
</Response>                    
{                         
   "Result": "string",    // Formatted contact name
   "Message": "string"    // Error message
}                         
                          

Status Codes

Code Condition
200 OK The operation completed successfully.
400 Bad RequestInvalid contact number.
401 Unauthorized Access token is invalid, expired or not specified.
404 Not FoundContact not found.
406 Not Acceptable Content type specified in the Accept header isn't supported.
500 Internal Server Error An internal error occurred.

Remarks

The name format can be one of the following values:
ValueDescription
ShortNameFirst and last names separated by a space (file-as name for entities).
CommunicationsNameFirst initial and last name separated by a space (abbreviated name for entities).
PostingNameTitle, initials and last name separated by spaces (trading name for entities).
FullNameFirst, middle and last names separated by spaces (registered entity name for entities).
FullNameAndTitleTitle, first/middle/last names and suffix separated by spaces.
AssociateNameFirst and last names separated by spaces, followed by associated entity in brackets (file-as name for entities).
CommsNameWithParentFirst initial and last name separated by a space, followed by associated entity in brackets (abbreviated name for entities).
InitialsAll initials without spaces.
EntityOrParentAssociated entity or empty (file-as name for entities).
LastNameLast name (file-as name for entities).
ShortOrAbbreviatedNameFirst and last names separated by a space (abbreviated name for entities).
ABNAustralian Business Number (ABN) of the contact or associated entity.
ACNAustralian Company Number (ACN) of the contact or associated entity.
AltCaptionNameLast and first names, separated by a comma and a space (file-as name for entities).