GET api/Contact/GetContactInfosByCompanyId/{companyid}/{display}

Returns all contacts within a given company

Request Information

URI Parameters

NameDescriptionTypeAdditional information
companyid

CompanyId related from company table

integer

Required

display

integer

Default value is 1

Body Parameters

None.

Response Information

Resource Description

Collection of ContactInfos
NameDescriptionTypeAdditional information
Id

integer

None.

Region

integer

None.

Name

string

None.

Title

string

None.

Phone

string

None.

Email

string

None.

CompanyId

integer

None.

LinkedIn

string

None.

ProfilePublic

boolean

None.

Website

string

None.

Address

string

None.

City

string

None.

State

string

None.

ZipCode

string

None.

Country

string

None.

SortOrder

integer

None.

Response Formats

application/json, text/json, text/html

Sample:
[
  {
    "Id": 1,
    "Region": 2,
    "Name": "sample string 3",
    "Title": "sample string 4",
    "Phone": "sample string 5",
    "Email": "sample string 6",
    "CompanyId": 7,
    "LinkedIn": "sample string 8",
    "ProfilePublic": true,
    "Website": "sample string 10",
    "Address": "sample string 11",
    "City": "sample string 12",
    "State": "sample string 13",
    "ZipCode": "sample string 14",
    "Country": "sample string 15",
    "SortOrder": 16
  },
  {
    "Id": 1,
    "Region": 2,
    "Name": "sample string 3",
    "Title": "sample string 4",
    "Phone": "sample string 5",
    "Email": "sample string 6",
    "CompanyId": 7,
    "LinkedIn": "sample string 8",
    "ProfilePublic": true,
    "Website": "sample string 10",
    "Address": "sample string 11",
    "City": "sample string 12",
    "State": "sample string 13",
    "ZipCode": "sample string 14",
    "Country": "sample string 15",
    "SortOrder": 16
  }
]

application/xml, text/xml

Sample:
<ArrayOfContactInfos xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NiceAPI.Managers">
  <ContactInfos>
    <Address>sample string 11</Address>
    <City>sample string 12</City>
    <CompanyId>7</CompanyId>
    <Country>sample string 15</Country>
    <Email>sample string 6</Email>
    <Id>1</Id>
    <LinkedIn>sample string 8</LinkedIn>
    <Name>sample string 3</Name>
    <Phone>sample string 5</Phone>
    <ProfilePublic>true</ProfilePublic>
    <Region>2</Region>
    <SortOrder>16</SortOrder>
    <State>sample string 13</State>
    <Title>sample string 4</Title>
    <Website>sample string 10</Website>
    <ZipCode>sample string 14</ZipCode>
  </ContactInfos>
  <ContactInfos>
    <Address>sample string 11</Address>
    <City>sample string 12</City>
    <CompanyId>7</CompanyId>
    <Country>sample string 15</Country>
    <Email>sample string 6</Email>
    <Id>1</Id>
    <LinkedIn>sample string 8</LinkedIn>
    <Name>sample string 3</Name>
    <Phone>sample string 5</Phone>
    <ProfilePublic>true</ProfilePublic>
    <Region>2</Region>
    <SortOrder>16</SortOrder>
    <State>sample string 13</State>
    <Title>sample string 4</Title>
    <Website>sample string 10</Website>
    <ZipCode>sample string 14</ZipCode>
  </ContactInfos>
</ArrayOfContactInfos>