MobileAccord Main Web Service


Click here for a complete list of operations.

GetCustomerRecordByID

Retrive a customer record

Test

To test the operation using the HTTP POST protocol, click the 'Invoke' button.
Parameter Value
username:
password:
companyID:
customerRecordID:

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 /WebService.asmx HTTP/1.1
Host: services.mobileaccord.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://services.mobileaccord.com/GetCustomerRecordByID"

<?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>
    <GetCustomerRecordByID xmlns="http://services.mobileaccord.com">
      <username>string</username>
      <password>string</password>
      <companyID>int</companyID>
      <customerRecordID>string</customerRecordID>
    </GetCustomerRecordByID>
  </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>
    <GetCustomerRecordByIDResponse xmlns="http://services.mobileaccord.com">
      <GetCustomerRecordByIDResult>
        <Records>
          <CustomerRecord>
            <CompanyID>int</CompanyID>
            <CustomerRecordID>string</CustomerRecordID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <Suite>string</Suite>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
            <Country>string</Country>
            <Email>string</Email>
            <DOB>dateTime</DOB>
            <HomePhone>string</HomePhone>
            <WorkPhone>string</WorkPhone>
            <Fax>string</Fax>
            <MobileNumber>string</MobileNumber>
            <Carrier>int</Carrier>
            <Notes>string</Notes>
            <Company>string</Company>
            <ExtraFields xsi:nil="true" />
            <OptinCampaigns xsi:nil="true" />
          </CustomerRecord>
          <CustomerRecord>
            <CompanyID>int</CompanyID>
            <CustomerRecordID>string</CustomerRecordID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <Suite>string</Suite>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
            <Country>string</Country>
            <Email>string</Email>
            <DOB>dateTime</DOB>
            <HomePhone>string</HomePhone>
            <WorkPhone>string</WorkPhone>
            <Fax>string</Fax>
            <MobileNumber>string</MobileNumber>
            <Carrier>int</Carrier>
            <Notes>string</Notes>
            <Company>string</Company>
            <ExtraFields xsi:nil="true" />
            <OptinCampaigns xsi:nil="true" />
          </CustomerRecord>
        </Records>
      </GetCustomerRecordByIDResult>
    </GetCustomerRecordByIDResponse>
  </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 /WebService.asmx HTTP/1.1
Host: services.mobileaccord.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:Body>
    <GetCustomerRecordByID xmlns="http://services.mobileaccord.com">
      <username>string</username>
      <password>string</password>
      <companyID>int</companyID>
      <customerRecordID>string</customerRecordID>
    </GetCustomerRecordByID>
  </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>
    <GetCustomerRecordByIDResponse xmlns="http://services.mobileaccord.com">
      <GetCustomerRecordByIDResult>
        <Records>
          <CustomerRecord>
            <CompanyID>int</CompanyID>
            <CustomerRecordID>string</CustomerRecordID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <Suite>string</Suite>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
            <Country>string</Country>
            <Email>string</Email>
            <DOB>dateTime</DOB>
            <HomePhone>string</HomePhone>
            <WorkPhone>string</WorkPhone>
            <Fax>string</Fax>
            <MobileNumber>string</MobileNumber>
            <Carrier>int</Carrier>
            <Notes>string</Notes>
            <Company>string</Company>
            <ExtraFields xsi:nil="true" />
            <OptinCampaigns xsi:nil="true" />
          </CustomerRecord>
          <CustomerRecord>
            <CompanyID>int</CompanyID>
            <CustomerRecordID>string</CustomerRecordID>
            <Title>string</Title>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <Address1>string</Address1>
            <Address2>string</Address2>
            <Suite>string</Suite>
            <City>string</City>
            <State>string</State>
            <Zip>string</Zip>
            <Country>string</Country>
            <Email>string</Email>
            <DOB>dateTime</DOB>
            <HomePhone>string</HomePhone>
            <WorkPhone>string</WorkPhone>
            <Fax>string</Fax>
            <MobileNumber>string</MobileNumber>
            <Carrier>int</Carrier>
            <Notes>string</Notes>
            <Company>string</Company>
            <ExtraFields xsi:nil="true" />
            <OptinCampaigns xsi:nil="true" />
          </CustomerRecord>
        </Records>
      </GetCustomerRecordByIDResult>
    </GetCustomerRecordByIDResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

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

GET /WebService.asmx/GetCustomerRecordByID?username=string&password=string&companyID=string&customerRecordID=string HTTP/1.1
Host: services.mobileaccord.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<CustomerRecordLookupResults xmlns="http://services.mobileaccord.com">
  <Records>
    <CustomerRecord>
      <CompanyID>int</CompanyID>
      <CustomerRecordID>string</CustomerRecordID>
      <Title>string</Title>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Suite>string</Suite>
      <City>string</City>
      <State>string</State>
      <Zip>string</Zip>
      <Country>string</Country>
      <Email>string</Email>
      <DOB>dateTime</DOB>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <Fax>string</Fax>
      <MobileNumber>string</MobileNumber>
      <Carrier>int</Carrier>
      <Notes>string</Notes>
      <Company>string</Company>
      <ExtraFields>
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </ExtraFields>
      <OptinCampaigns>
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </OptinCampaigns>
    </CustomerRecord>
    <CustomerRecord>
      <CompanyID>int</CompanyID>
      <CustomerRecordID>string</CustomerRecordID>
      <Title>string</Title>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Suite>string</Suite>
      <City>string</City>
      <State>string</State>
      <Zip>string</Zip>
      <Country>string</Country>
      <Email>string</Email>
      <DOB>dateTime</DOB>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <Fax>string</Fax>
      <MobileNumber>string</MobileNumber>
      <Carrier>int</Carrier>
      <Notes>string</Notes>
      <Company>string</Company>
      <ExtraFields>
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </ExtraFields>
      <OptinCampaigns>
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </OptinCampaigns>
    </CustomerRecord>
  </Records>
</CustomerRecordLookupResults>

HTTP POST

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

POST /WebService.asmx/GetCustomerRecordByID HTTP/1.1
Host: services.mobileaccord.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

username=string&password=string&companyID=string&customerRecordID=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<CustomerRecordLookupResults xmlns="http://services.mobileaccord.com">
  <Records>
    <CustomerRecord>
      <CompanyID>int</CompanyID>
      <CustomerRecordID>string</CustomerRecordID>
      <Title>string</Title>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Suite>string</Suite>
      <City>string</City>
      <State>string</State>
      <Zip>string</Zip>
      <Country>string</Country>
      <Email>string</Email>
      <DOB>dateTime</DOB>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <Fax>string</Fax>
      <MobileNumber>string</MobileNumber>
      <Carrier>int</Carrier>
      <Notes>string</Notes>
      <Company>string</Company>
      <ExtraFields>
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </ExtraFields>
      <OptinCampaigns>
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </OptinCampaigns>
    </CustomerRecord>
    <CustomerRecord>
      <CompanyID>int</CompanyID>
      <CustomerRecordID>string</CustomerRecordID>
      <Title>string</Title>
      <FirstName>string</FirstName>
      <LastName>string</LastName>
      <Address1>string</Address1>
      <Address2>string</Address2>
      <Suite>string</Suite>
      <City>string</City>
      <State>string</State>
      <Zip>string</Zip>
      <Country>string</Country>
      <Email>string</Email>
      <DOB>dateTime</DOB>
      <HomePhone>string</HomePhone>
      <WorkPhone>string</WorkPhone>
      <Fax>string</Fax>
      <MobileNumber>string</MobileNumber>
      <Carrier>int</Carrier>
      <Notes>string</Notes>
      <Company>string</Company>
      <ExtraFields>
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordExtraInfo d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </ExtraFields>
      <OptinCampaigns>
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
        <CustomerRecordOptinDetails d5p1:nil="true" xmlns:d5p1="http://www.w3.org/2001/XMLSchema-instance" />
      </OptinCampaigns>
    </CustomerRecord>
  </Records>
</CustomerRecordLookupResults>