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

AcceptLead


This method allows a lead to auto accept as customer.

URL :http://webservice.dealerhub.net/dealerhub/WS/DealerHubV1.cfc?wsdl

Method :AcceptLead

Input Parameters :

XMLSecurity
XMLData

There are always 2 parameters passed, these are both XML strings, and the first is XMLSecurity which holds the security information, i.e your access code and the dealercode that you want to access the data for, and the second is the XML data you are going to pass in.

Input XML Data fields:

Group Field Name Field Type Field Description
LEAD LEADID Numeric The Autoslm unique id of the lead
LEAD USERID Numeric The Autoslm unique id of the user
LEAD SAIDNUMBER Numeric The South Africa unique id of the user

Leadid and ( Userid or SAID number ) have to be entered, these are the only Mandatory fields

The lead data are passed into through the XMLData packet one at a time

An example of value XMLData packet:

<LEAD>
      <LEADID>123456</LEADID>
      <USERID>78910</USERID>
      <SAIDNUMBER>1234567890987</SAIDNUMBER>
</LEAD>

Example output for a valid call:

<?xml version="1.0" encoding="UTF-8"?>
<ResultSet>
<MessageCode>1000</MessageCode>
<Messagetxt>Lead id 123456 is successfully accepted as customer - Customer unique ID - 1231231230</Messagetxt>
</ResultSet>

 

Example output for an invalid call / or general error in a webservice call

<?xml version="1.0" encoding="UTF-8" ?>
<ResultSet>
<Error>
<ErrorCode>77</ErrorCode>
<ErrorInfo>Lead is already accepted or assigned to someone else. Please check.</ErrorInfo>
</Error>
</ResultSet>

There may be multiple errors returned in the XML packet, they are separated by <Error> blocks and each block contains an ErrorCode to allow you to do some processing logic on the numerical value returned, and an ErrorInfo which is used by the developer or administrator to visually see what the problem is with the submission.