GET api/v1/addressbook/contacts/{contactID}

This method returns the details of the specified contact. This detail of the contact will include their first name, last name, mobile number, email address and the type of authentication the contact has chosen if used with an SMS+ message. The system checks the contact ID is valid and belongs to the account

Request Information

URI Parameters

NameDescriptionTypeAdditional information
contactID

The Id of the contact.

string

Required

Body Parameters

None.

Response Information

Resource Description

A contact that the authenticated user is allowed to view.

ResponseOfAddressBook
NameDescriptionTypeAdditional information
Error

Error

None.

ResponseData

ResponseDataOfAddressBook

None.

Response Formats

application/json, text/json

Sample:
{
  "Error": {
    "ErrorCode": "sample string 1",
    "ErrorReason": "sample string 2"
  },
  "ResponseData": {
    "Identification": {
      "UserId": "sample string 1"
    },
    "Result": "sample string 1",
    "Detail": {
      "PersonNumber": 1,
      "FirstName": "sample string 2",
      "LastName": "sample string 3",
      "MobilePhone": "sample string 4",
      "EmailAddress": "sample string 5",
      "Password": "sample string 6",
      "LoginType": 7,
      "DateCreated": "2017-11-17T16:00:25.0828546Z",
      "DateModified": "2017-11-17T16:00:25.0828546Z",
      "LastModifiedBy": "sample string 8",
      "VetoValidation": true
    }
  }
}

application/xml, text/xml

Sample:
<ResponseOfAddressBook xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Error>
    <ErrorCode>sample string 1</ErrorCode>
    <ErrorReason>sample string 2</ErrorReason>
  </Error>
  <ResponseData>
    <Result>sample string 1</Result>
    <Identification>
      <UserId>sample string 1</UserId>
    </Identification>
    <Detail>
      <PersonNumber>1</PersonNumber>
      <FirstName>sample string 2</FirstName>
      <LastName>sample string 3</LastName>
      <MobilePhone>sample string 4</MobilePhone>
      <EmailAddress>sample string 5</EmailAddress>
      <Password>sample string 6</Password>
      <LoginType>7</LoginType>
      <DateCreated>2017-11-17T16:00:25.0828546Z</DateCreated>
      <DateModified>2017-11-17T16:00:25.0828546Z</DateModified>
      <LastModifiedBy>sample string 8</LastModifiedBy>
      <VetoValidation>true</VetoValidation>
    </Detail>
  </ResponseData>
</ResponseOfAddressBook>