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

AddLead


This method allows a lead to be added to the system.

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

Input Body Content:

<Params>
<SecurityData>
<AccessCode>ACCESS CODE HERE</AccessCode>
<DealerCode>DEALER CODE HERE</DealerCode>
</SecurityData>
<XMLData>
<Lead>
<LeadType>String Value</LeadType>
<LeadSource>String Value</LeadSource>
<Customer>
<customertype>Numerical value, 1 = Retail, 2 = Fleet, 3 = Motability</customertype>
<lastname>String Value</lastname>
<customerurn>Numerical value - Your Unique Ref Number (or DB ID)</customerurn>
<title>String Value</title>
<forename>String Value</forename>
<address>
<address1>String Value</address1>
<address2>String Value </address2>
<city>String Value</city>
<county>String Value</county>
<postcode>String Value</postcode>
</address>
<homephone>String Value</homephone>
<workphone>String Value</workphone>
<mobile>String Value</mobile>
<email>String Value</email>
<dpa>
<dpapostal>String Value,enter either Y or N, Y = YES, N = NO to Contact</dpapostal>
<dpasms>String Value,enter either Y or N, Y = YES, N = NO to Contact</dpasms>
<dpatel>String Value,enter either Y or N, Y = YES, N = NO to Contact</dpatel>
<dpaemail>String Value,enter either Y or N, Y = YES, N = NO to Contact</dpaemail>
</dpa>
<marketing>
<methodofcontact>String Value</methodofcontact>
<sourceofenquiry>String Value</sourceofenquiry>
<adcampaign>String Value</adcampaign>
</marketing>
<message>String Value</message>
</Customer>
<Vehicle>
<newused>String Value, enter either NEW or USED as a value</newused>
<fuel>String Value</fuel>
<color>String Value</color>
<modelyear>Numerical value</modelyear>
<make>String Value</make>
<model>String Value</model>
<derivative>String Value</derivative>
</Vehicle>
</Lead>
</XMLData>
</Params>



A sample body submission would look like this

<Params>
<SecurityData>
<AccessCode>D7826GHG66$KHGNgg1FD4DCA492A26E</AccessCode>
<DealerCode>1005</DealerCode>
</SecurityData>
<XMLData>
<Lead>
<LeadType>Test Lead</LeadType>
<LeadSource>Website</LeadSource>
<Customer>
<customertype>1</customertype>
<lastname>Jones</lastname>
<customerurn>342343432</customerurn>
<title>Mr</title>
<forename>Billy</forename>
<address>
<address1>463 Bury Av.</address1>
<address2>Marco </address2>
<city>Leeds</city>
<county>Yorkshire</county>
<postcode>LS3 7GF</postcode>
</address>
<homephone>2395551122</homephone>
<workphone>2395551123</workphone>
<mobile>0795551124</mobile>
<email>test@test.com</email>
<dpa>
<dpapostal>Y</dpapostal>
<dpasms>N</dpasms>
<dpatel>N</dpatel>
<dpaemail>Y</dpaemail>
</dpa>
<marketing>
<methodofcontact>Internet</methodofcontact>
<sourceofenquiry>Website Lead</sourceofenquiry>
<adcampaign></adcampaign>
</marketing>
<message> REGNO : AV51WEW, MILEAGE : 145000, Valuation Showroom: 225 </message>
</Customer>
<Vehicle>
<newused>USED</newused>
<fuel>Petrol</fuel>
<color>Red</color>
<modelyear>2014</modelyear>
<make>Toyota</make>
<model>Auris</model>
<derivative></derivative>
</Vehicle>
</Lead>
</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>
<MESSAGECODE>1000</MESSAGECODE>
<MESSAGETXT>RECORD INSERTED SUCCESSFULLY</MESSAGETXT>
</RESULTSET>