MobileAccord Main Web Service
Click here for a complete list of operations.
GetCustomerRecordByEmail
Retrieve a customer record
Test
To test the operation using the HTTP POST protocol, click the 'Invoke' button.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/GetCustomerRecordByEmail"
<?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>
<GetCustomerRecordByEmail xmlns="http://services.mobileaccord.com">
<username>string</username>
<password>string</password>
<companyID>int</companyID>
<email>string</email>
</GetCustomerRecordByEmail>
</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>
<GetCustomerRecordByEmailResponse xmlns="http://services.mobileaccord.com">
<GetCustomerRecordByEmailResult>
<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>
</GetCustomerRecordByEmailResult>
</GetCustomerRecordByEmailResponse>
</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>
<GetCustomerRecordByEmail xmlns="http://services.mobileaccord.com">
<username>string</username>
<password>string</password>
<companyID>int</companyID>
<email>string</email>
</GetCustomerRecordByEmail>
</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>
<GetCustomerRecordByEmailResponse xmlns="http://services.mobileaccord.com">
<GetCustomerRecordByEmailResult>
<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>
</GetCustomerRecordByEmailResult>
</GetCustomerRecordByEmailResponse>
</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/GetCustomerRecordByEmail?username=string&password=string&companyID=string&email=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/GetCustomerRecordByEmail HTTP/1.1 Host: services.mobileaccord.com Content-Type: application/x-www-form-urlencoded Content-Length: length username=string&password=string&companyID=string&email=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>