ContactService


Click here for a complete list of operations.

CustomerUpdate

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /api/contactservice.asmx HTTP/1.1
Host: losalesdemo.mc.hostedcc.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://datasquirt.com/webservices/CustomerUpdate"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <ContactCredentials xmlns="http://datasquirt.com/webservices/">
      <UserID>string</UserID>
      <Password>string</Password>
    </ContactCredentials>
  </soap:Header>
  <soap:Body>
    <CustomerUpdate xmlns="http://datasquirt.com/webservices/">
      <customer>
        <CustomerID>int</CustomerID>
        <LastModifiedByContactUserID>int</LastModifiedByContactUserID>
        <Status>int</Status>
        <CustomerRef1>string</CustomerRef1>
        <CustomerRef2>string</CustomerRef2>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <Address3>string</Address3>
        <City>string</City>
        <State>string</State>
        <Country>string</Country>
        <PostCode>string</PostCode>
        <TimeZoneInfoID>string</TimeZoneInfoID>
        <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel>
        <Created>dateTime</Created>
        <LastModified>dateTime</LastModified>
        <GenericCustomerData>
          <GenericCustomerDataID>int</GenericCustomerDataID>
          <CustomerID>int</CustomerID>
          <ShortField01>string</ShortField01>
          <ShortField02>string</ShortField02>
          <ShortField03>string</ShortField03>
          <ShortField04>string</ShortField04>
          <ShortField05>string</ShortField05>
          <ShortField06>string</ShortField06>
          <ShortField07>string</ShortField07>
          <ShortField08>string</ShortField08>
          <ShortField09>string</ShortField09>
          <ShortField10>string</ShortField10>
          <ShortField11>string</ShortField11>
          <ShortField12>string</ShortField12>
          <ShortField13>string</ShortField13>
          <ShortField14>string</ShortField14>
          <ShortField15>string</ShortField15>
          <ShortField16>string</ShortField16>
          <ShortField17>string</ShortField17>
          <ShortField18>string</ShortField18>
          <ShortField19>string</ShortField19>
          <ShortField20>string</ShortField20>
          <ShortField21>string</ShortField21>
          <ShortField22>string</ShortField22>
          <ShortField23>string</ShortField23>
          <ShortField24>string</ShortField24>
          <ShortField25>string</ShortField25>
          <ShortField26>string</ShortField26>
          <ShortField27>string</ShortField27>
          <ShortField28>string</ShortField28>
          <ShortField29>string</ShortField29>
          <ShortField30>string</ShortField30>
          <LongField01>string</LongField01>
          <LongField02>string</LongField02>
        </GenericCustomerData>
        <CustomerContacts>
          <CustomerContact>
            <CustomerContactID>int</CustomerContactID>
            <ContactTypeID>int</ContactTypeID>
            <CustomerID>int</CustomerID>
            <Value>string</Value>
            <CarrierCode>string</CarrierCode>
            <IsPrimary>boolean</IsPrimary>
            <IsContactable>boolean</IsContactable>
            <ContactType>Mobile or Email or Fax or HomePhone or BusinessPhone or Twitter or GenericMessageType1 or GenericMessageType2</ContactType>
            <ActionFlag>Update or Insert or Delete</ActionFlag>
          </CustomerContact>
          <CustomerContact>
            <CustomerContactID>int</CustomerContactID>
            <ContactTypeID>int</ContactTypeID>
            <CustomerID>int</CustomerID>
            <Value>string</Value>
            <CarrierCode>string</CarrierCode>
            <IsPrimary>boolean</IsPrimary>
            <IsContactable>boolean</IsContactable>
            <ContactType>Mobile or Email or Fax or HomePhone or BusinessPhone or Twitter or GenericMessageType1 or GenericMessageType2</ContactType>
            <ActionFlag>Update or Insert or Delete</ActionFlag>
          </CustomerContact>
        </CustomerContacts>
      </customer>
    </CustomerUpdate>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CustomerUpdateResponse xmlns="http://datasquirt.com/webservices/" />
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /api/contactservice.asmx HTTP/1.1
Host: losalesdemo.mc.hostedcc.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Header>
    <ContactCredentials xmlns="http://datasquirt.com/webservices/">
      <UserID>string</UserID>
      <Password>string</Password>
    </ContactCredentials>
  </soap12:Header>
  <soap12:Body>
    <CustomerUpdate xmlns="http://datasquirt.com/webservices/">
      <customer>
        <CustomerID>int</CustomerID>
        <LastModifiedByContactUserID>int</LastModifiedByContactUserID>
        <Status>int</Status>
        <CustomerRef1>string</CustomerRef1>
        <CustomerRef2>string</CustomerRef2>
        <FirstName>string</FirstName>
        <LastName>string</LastName>
        <Address1>string</Address1>
        <Address2>string</Address2>
        <Address3>string</Address3>
        <City>string</City>
        <State>string</State>
        <Country>string</Country>
        <PostCode>string</PostCode>
        <TimeZoneInfoID>string</TimeZoneInfoID>
        <PreferredChannel>SMS or Email or Fax or Unknown or Phone or Chat or Twitter or Facebook or YouTube or LinkedIn or GenericMessageType1 or GenericMessageType2</PreferredChannel>
        <Created>dateTime</Created>
        <LastModified>dateTime</LastModified>
        <GenericCustomerData>
          <GenericCustomerDataID>int</GenericCustomerDataID>
          <CustomerID>int</CustomerID>
          <ShortField01>string</ShortField01>
          <ShortField02>string</ShortField02>
          <ShortField03>string</ShortField03>
          <ShortField04>string</ShortField04>
          <ShortField05>string</ShortField05>
          <ShortField06>string</ShortField06>
          <ShortField07>string</ShortField07>
          <ShortField08>string</ShortField08>
          <ShortField09>string</ShortField09>
          <ShortField10>string</ShortField10>
          <ShortField11>string</ShortField11>
          <ShortField12>string</ShortField12>
          <ShortField13>string</ShortField13>
          <ShortField14>string</ShortField14>
          <ShortField15>string</ShortField15>
          <ShortField16>string</ShortField16>
          <ShortField17>string</ShortField17>
          <ShortField18>string</ShortField18>
          <ShortField19>string</ShortField19>
          <ShortField20>string</ShortField20>
          <ShortField21>string</ShortField21>
          <ShortField22>string</ShortField22>
          <ShortField23>string</ShortField23>
          <ShortField24>string</ShortField24>
          <ShortField25>string</ShortField25>
          <ShortField26>string</ShortField26>
          <ShortField27>string</ShortField27>
          <ShortField28>string</ShortField28>
          <ShortField29>string</ShortField29>
          <ShortField30>string</ShortField30>
          <LongField01>string</LongField01>
          <LongField02>string</LongField02>
        </GenericCustomerData>
        <CustomerContacts>
          <CustomerContact>
            <CustomerContactID>int</CustomerContactID>
            <ContactTypeID>int</ContactTypeID>
            <CustomerID>int</CustomerID>
            <Value>string</Value>
            <CarrierCode>string</CarrierCode>
            <IsPrimary>boolean</IsPrimary>
            <IsContactable>boolean</IsContactable>
            <ContactType>Mobile or Email or Fax or HomePhone or BusinessPhone or Twitter or GenericMessageType1 or GenericMessageType2</ContactType>
            <ActionFlag>Update or Insert or Delete</ActionFlag>
          </CustomerContact>
          <CustomerContact>
            <CustomerContactID>int</CustomerContactID>
            <ContactTypeID>int</ContactTypeID>
            <CustomerID>int</CustomerID>
            <Value>string</Value>
            <CarrierCode>string</CarrierCode>
            <IsPrimary>boolean</IsPrimary>
            <IsContactable>boolean</IsContactable>
            <ContactType>Mobile or Email or Fax or HomePhone or BusinessPhone or Twitter or GenericMessageType1 or GenericMessageType2</ContactType>
            <ActionFlag>Update or Insert or Delete</ActionFlag>
          </CustomerContact>
        </CustomerContacts>
      </customer>
    </CustomerUpdate>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <CustomerUpdateResponse xmlns="http://datasquirt.com/webservices/" />
  </soap12:Body>
</soap12:Envelope>