To call any of the AutoSLM API webservices, just call the REST URL post the input body content as the input content listed below. Please replace the block marked "ACCESS CODE HERE" with your AutoSLM assigned access code which will be issued per third party company wanting to connect. Also where applicable, include the dealer code of the dealer this call relates to.

READ
Methods Available

GetDealers
GetCustomerList
GetCustomers
GetStaff
GetLeads
GetStockVehicles
CheckSale

WRITE
Methods Available

AddLead
AddLeadV2
AcceptLead
AddCustomer
AddActivity
AddStockVehicle
DeleteStockVehicle

GetCustomerList


This method gets a list of customers per dealer.

URL : https://api.autoslm.com/GetCustomerList/

Input Body Content:

<Params>
<SecurityData>
<AccessCode>ACCESS CODE HERE</AccessCode>
<DealerCode>DEALER CODE HERE</DealerCode>
</SecurityData>
<XMLData>
<InputParams>
<StartDate>Start date in format yyyy-mm-dd</StartDate>
<EndDate>End date in format yyyy-mm-dd</EndDate>
<Criteria>Search criteria i.e customer surname</Criteria>
<OrderBy>Results order by</OrderBy>
</InputParams>
</XMLData>
</Params>
* StartDate is optional
* EndDate is optional
* Criteria is optional
* OrderBy is optional

A sample body submission would look like this

<Params>
<SecurityData>
<AccessCode>D7826GHG66$KHGNgg1FD4DCA492A26E</AccessCode>
<DealerCode>1005</DealerCode>
</SecurityData>
<XMLData>
<InputParams>
<StartDate></StartDate>
<EndDate></EndDate>
<Criteria></Criteria>
<OrderBy></OrderBy>
</InputParams>
</XMLData>
</Params>
The sample above would return all the latest customers who have enquiried or been modified recently



Sample Return Content:

<?xml version="1.0" encoding="UTF-8"?><ResultSet>
<customer>
<custid>10682413</custid>
<createddate>2012-10-23 14:52:07</createddate>
<modifeddate>2013-10-23 14:56:43</modifeddate>
<customertype>Retail</customertype>
<companyname/>
<title>Mr</title>
<forename>Mike </forename>
<surname>Atkinson </surname>
<phoneno/>
<workno/>
<mobile/>
<email/>
</customer>
<customer>
<custid>10682414</custid>
<createddate>2012-10-23 14:56:43</createddate>
<modifeddate>2013-10-23 14:56:43</modifeddate>
<customertype>Retail</customertype>
<companyname/>
<title>Mr</title>
<forename>Alan </forename>
<surname>Hazelhurst </surname>
<phoneno/>
<workno/>
<mobile/>
<email/>
</customer>
</ResultSet>