GET api/ContactInfo?companyCodes={companyCodes}

Gets contact information for all employees in a company.

Request Information

Parameters

NameDescriptionAdditional information
companyCodes
The company codes.

Define this parameter in the request URI.

Response Information

Response body formats

application/json, text/json

Sample:
[
  {
    "EmployeeCode": "sample string 1",
    "EmployeeId": 2,
    "HomePhone": "sample string 3",
    "HomeAreaCode": "sample string 4",
    "WorkPhone": "sample string 5",
    "WorkAreaCode": "sample string 6",
    "CellPhone": "sample string 7",
    "CellPhoneAreaCode": "sample string 8",
    "PersonalEmail": "sample string 9",
    "WorkEmail": "sample string 10",
    "PrimaryContactMethod": "sample string 11"
  },
  {
    "EmployeeCode": "sample string 1",
    "EmployeeId": 2,
    "HomePhone": "sample string 3",
    "HomeAreaCode": "sample string 4",
    "WorkPhone": "sample string 5",
    "WorkAreaCode": "sample string 6",
    "CellPhone": "sample string 7",
    "CellPhoneAreaCode": "sample string 8",
    "PersonalEmail": "sample string 9",
    "WorkEmail": "sample string 10",
    "PrimaryContactMethod": "sample string 11"
  },
  {
    "EmployeeCode": "sample string 1",
    "EmployeeId": 2,
    "HomePhone": "sample string 3",
    "HomeAreaCode": "sample string 4",
    "WorkPhone": "sample string 5",
    "WorkAreaCode": "sample string 6",
    "CellPhone": "sample string 7",
    "CellPhoneAreaCode": "sample string 8",
    "PersonalEmail": "sample string 9",
    "WorkEmail": "sample string 10",
    "PrimaryContactMethod": "sample string 11"
  }
]

application/xml, text/xml

Sample:
<ArrayOfContactInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.Internal.Core.Models.Employee">
  <ContactInfo>
    <CellPhone>sample string 7</CellPhone>
    <CellPhoneAreaCode>sample string 8</CellPhoneAreaCode>
    <EmployeeCode>sample string 1</EmployeeCode>
    <EmployeeId>2</EmployeeId>
    <HomeAreaCode>sample string 4</HomeAreaCode>
    <HomePhone>sample string 3</HomePhone>
    <PersonalEmail>sample string 9</PersonalEmail>
    <PrimaryContactMethod>sample string 11</PrimaryContactMethod>
    <WorkAreaCode>sample string 6</WorkAreaCode>
    <WorkEmail>sample string 10</WorkEmail>
    <WorkPhone>sample string 5</WorkPhone>
  </ContactInfo>
  <ContactInfo>
    <CellPhone>sample string 7</CellPhone>
    <CellPhoneAreaCode>sample string 8</CellPhoneAreaCode>
    <EmployeeCode>sample string 1</EmployeeCode>
    <EmployeeId>2</EmployeeId>
    <HomeAreaCode>sample string 4</HomeAreaCode>
    <HomePhone>sample string 3</HomePhone>
    <PersonalEmail>sample string 9</PersonalEmail>
    <PrimaryContactMethod>sample string 11</PrimaryContactMethod>
    <WorkAreaCode>sample string 6</WorkAreaCode>
    <WorkEmail>sample string 10</WorkEmail>
    <WorkPhone>sample string 5</WorkPhone>
  </ContactInfo>
  <ContactInfo>
    <CellPhone>sample string 7</CellPhone>
    <CellPhoneAreaCode>sample string 8</CellPhoneAreaCode>
    <EmployeeCode>sample string 1</EmployeeCode>
    <EmployeeId>2</EmployeeId>
    <HomeAreaCode>sample string 4</HomeAreaCode>
    <HomePhone>sample string 3</HomePhone>
    <PersonalEmail>sample string 9</PersonalEmail>
    <PrimaryContactMethod>sample string 11</PrimaryContactMethod>
    <WorkAreaCode>sample string 6</WorkAreaCode>
    <WorkEmail>sample string 10</WorkEmail>
    <WorkPhone>sample string 5</WorkPhone>
  </ContactInfo>
</ArrayOfContactInfo>