PartnerHub

<back to all web services

ContactChange

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/ContactChange HTTP/1.1 
Host: partnerhub.pbsdealers.com 
Content-Type: application/xml
Content-Length: length

<ContactChange xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBS.PartnerHub.ServiceModel">
  <ContactInfo>
    <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>
    <LastName>String</LastName>
    <LastUpdate>0001-01-01T00:00:00</LastUpdate>
    <MiddleName>String</MiddleName>
    <Notes>String</Notes>
    <PreferredContactMethods xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:string>String</d3p1:string>
    </PreferredContactMethods>
    <Salutation>String</Salutation>
    <SerialNumber>String</SerialNumber>
    <State>String</State>
    <ZipCode>String</ZipCode>
  </ContactInfo>
  <IsAsynchronous>false</IsAsynchronous>
  <UserRequest>String</UserRequest>
</ContactChange>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Confirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PBS.PartnerHub.ServiceModel">
  <Message>String</Message>
  <ReferenceId>String</ReferenceId>
  <WasSuccessful>false</WasSuccessful>
</Confirmation>