Use the following HTTP Post to post date to a web API from a PHP form. The PHP form is MULTI Page. Once lead is submitted at the end of the multi-page form, the Lead ID should be displayed for the user's reference. This will be implemented on THREE different/very similar forms. Do NOT interfere with the way in which the form saves to the SQL database.
Will send the addlead URL and form URLs to interested bidders.
Lead HTTP Post
An HTTP Post can be submitted to the API in order to create a Lead in the Database. On success, the API will send the Lead ID assigned in the HTTP response. If an error occurs and the lead could not be saved into CreditSoft, a message will be returned in the HTTP response.
Fields Sent via HTTP Post
FirstName
LastName
Address1
Address2
City
State
Zip
Email
HomePhone
WorkPhone
HomePhoneTime
DebtAmount
BillStatus
AdvertisingID (Must be the Advertising ID known to CreditSoft)
Post Examples
The web page that will process the HTTP POSTS is API_AddLead.aspx. There will be two ways of sending information to this page: Query String and Create HTTP POST request.
Add Lead using HTTP Post
<form name="API_AddLead" id="API_AddLead" method="POST" action="http://<WEBSERVER>/[login to view URL] " target="cnfm">
<input type="hidden" name="__VIEWSTATE" value="" />
<input name="FirstName" type="hidden" id="FirstName" value="John" />
<input name="lastname" type="hidden" id="lastname" value="Smith" />
<input name="address1" type="hidden" id="address1" value="1600 pennsylvania ave" />
<input name="address2" type="hidden" id="address2" value="" />
<input name="city" type="hidden" id="city" value="Jonestown" />
<input name="state" type="hidden" id="state" value="FL" />
<input name="zip" type="hidden" id="zip" value="99999" />
<input name="email" type="hidden" id="email" value="" />
<input name="homephone" type="hidden" id="homephone" value="9995551212" />
<input name="workphone" type="hidden" id="workphone" value="8995551212" />
<input name="homephonetime" type="hidden" id=" homephonetime " value="1300" />
<input name="debtamount" type="hidden" id="debtamount" value="50000" />
<input name="billstatus" type="hidden" id=" billstatus " value=" oneday " />
<input name="advertisingid" type="hidden" id="advertisingid" value="999" />
</form>
Responses
On Success
RESULT=SUCCESS<br>
LEADID=[CreditSoftLeadID]
On Failure
RESULT=FAILURE<BR>
ERROR=[ErrorMessage]
The possible error messages are:
Invalid Advertising ID
First Name is required
Last Name is required
Debt Amount must be numeric
Unknown error ocurred. Error Details: [ErrorDetails]
This should be a straightforward task. I have approx 10 years experience with php/mysql, and love working with API integrations. I've developed many vtiger crm customizations including integrations with lead providers.