PartnerHub

<back to all web services

ContactGet

To override the Content-type in your clients HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/ContactGet HTTP/1.1 
Host: partnerhub.pbsdealers.com 
Content-Type: application/xml
Content-Length: length

<ContactGet xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBS.PartnerHub.ServiceModel">
  <ContactCode>String</ContactCode>
  <ContactId>00000000-0000-0000-0000-000000000000</ContactId>
  <ContactIdList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
  </ContactIdList>
  <EmailAddress>String</EmailAddress>
  <IncludeInactive>false</IncludeInactive>
  <LastName>String</LastName>
  <ModifiedSince>0001-01-01T00:00:00</ModifiedSince>
  <ModifiedUntil>0001-01-01T00:00:00</ModifiedUntil>
  <PhoneNumber>String</PhoneNumber>
  <SerialNumber>String</SerialNumber>
</ContactGet>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ContactGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBS.PartnerHub.ServiceModel">
  <Contacts>
    <Contact>
      <Address>String</Address>
      <ApartmentNumber>String</ApartmentNumber>
      <BirthDate>0001-01-01T00:00:00</BirthDate>
      <BusinessPhone>String</BusinessPhone>
      <CellPhone>String</CellPhone>
      <City>String</City>
      <Code>String</Code>
      <CommunicationPreferences>
        <Email>String</Email>
        <Letter>String</Letter>
        <Phone>String</Phone>
        <Preferred>String</Preferred>
        <TextMessage>String</TextMessage>
      </CommunicationPreferences>
      <ContactId>00000000-0000-0000-0000-000000000000</ContactId>
      <ContactName>String</ContactName>
      <County>String</County>
      <CriticalMemo>String</CriticalMemo>
      <CustomFields>
        <CustomField>
          <Key>String</Key>
          <Type>String</Type>
          <Value>String</Value>
        </CustomField>
      </CustomFields>
      <DriverLicense>String</DriverLicense>
      <EmailAddress>String</EmailAddress>
      <FaxNumber>String</FaxNumber>
      <FirstName>String</FirstName>
      <FleetType>String</FleetType>
      <Gender>String</Gender>
      <HomePhone>String</HomePhone>
      <IsBusiness>false</IsBusiness>
      <IsInactive>false</IsInactive>
      <Language>String</Language>
      <LastName>String</LastName>
      <LastUpdate>0001-01-01T00:00:00</LastUpdate>
      <MiddleName>String</MiddleName>
      <Notes>String</Notes>
      <PreferredContactMethods xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </PreferredContactMethods>
      <SalesRepRef>00000000-0000-0000-0000-000000000000</SalesRepRef>
      <Salutation>String</Salutation>
      <SerialNumber>String</SerialNumber>
      <State>String</State>
      <ZipCode>String</ZipCode>
    </Contact>
  </Contacts>
</ContactGetResponse>