|
READ Methods Available GetDealers GetCustomerList GetCustomers GetStaff GetLeads GetStockVehicles CheckSale WRITE Methods Available AddLead AddLeadV2 AcceptLead AddCustomer AddActivity AddStockVehicle DeleteStockVehicle |
AddLeadThis 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>
<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> Sample Return Content: <XML VERSION=1.0 ENCODING=UTF-8>
<RESULTSET> <MESSAGECODE>1000</MESSAGECODE> <MESSAGETXT>RECORD INSERTED SUCCESSFULLY</MESSAGETXT> </RESULTSET> |