GET v1/customers/{id}/contacts

Gets list of contacts associated with the customer specified by customer id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

Provide customer id to get contacts for

integer

Required

Body Parameters

None.

Response Information

Resource Description

SearchResultOfCustomerContact
NameDescriptionTypeAdditional information
TotalCount

integer

None.

Data

Collection of CustomerContact

None.

Response Formats

application/json, text/json

Sample:
{
  "totalCount": 1,
  "data": [
    {
      "id": 1,
      "firstName": "sample string 1",
      "lastName": "sample string 2",
      "title": "sample string 3",
      "countryDialCode": 4,
      "phone": "sample string 5",
      "email": "sample string 6",
      "isPrimary": true,
      "active": true
    },
    {
      "id": 1,
      "firstName": "sample string 1",
      "lastName": "sample string 2",
      "title": "sample string 3",
      "countryDialCode": 4,
      "phone": "sample string 5",
      "email": "sample string 6",
      "isPrimary": true,
      "active": true
    }
  ]
}

application/xml, text/xml

Sample:
<SearchResultOfCustomerContactJSBqjE6T xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BAPI.Models.CRM">
    <d2p1:CustomerContact>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:CountryDialCode>4</d2p1:CountryDialCode>
      <d2p1:Email>sample string 6</d2p1:Email>
      <d2p1:FirstName>sample string 1</d2p1:FirstName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:LastName>sample string 2</d2p1:LastName>
      <d2p1:Phone>sample string 5</d2p1:Phone>
      <d2p1:Title>sample string 3</d2p1:Title>
    </d2p1:CustomerContact>
    <d2p1:CustomerContact>
      <d2p1:Active>true</d2p1:Active>
      <d2p1:CountryDialCode>4</d2p1:CountryDialCode>
      <d2p1:Email>sample string 6</d2p1:Email>
      <d2p1:FirstName>sample string 1</d2p1:FirstName>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:IsPrimary>true</d2p1:IsPrimary>
      <d2p1:LastName>sample string 2</d2p1:LastName>
      <d2p1:Phone>sample string 5</d2p1:Phone>
      <d2p1:Title>sample string 3</d2p1:Title>
    </d2p1:CustomerContact>
  </Data>
  <TotalCount>1</TotalCount>
</SearchResultOfCustomerContactJSBqjE6T>