connectleads api instructions (1) (2) (2).pdf

2
 !"# %" &'( "&) *+, -") '&./0%%012 3(45' %" 6"11(7%8(45' !"# %&' ()# *+*,-#)./,0++1 2"34/--/.5 +*062 #*0++1 ).+1 ,).2/2-2 )( 0 2/47+* 899& #*:"*2- 4*-;)6< = )" ,0. "2* */-;*# -;* 899& &!>9 4*-;)6 )# -;* 899& ?@9 4*-;)6 < A)# -*2-/.5 7"#7)2*2 B* ;0C* ,#*0-*6 0 20.63)D< !.,* 1)" ;0C* -*2-*6 0.6 )"# B*3 6*C*+)74*.- 6* 70#-4*.- ;02 ,).(/#4*6 -;0- B* #*,*/C*6 -;* 60-0 ,)##*,-+1 E B* B/++ 7#)C/6* 1)" B/-; -;* +/C* FGH -) 7)2- +*062 -)< 90(35' %" '&./0% %" %:( *+,  % 705* / 2 0--0,;*6 B/-; (/*+6 - 17*2E #*:"/#*6 (/*+62E 0.6 6*-0/+ 2 ()# *0,; (/*+6 -;0- - ;* %&' B/++ 0,,*7-< ;415."< -") %('%012 A)# -*2-/.5E -;* FGH -) &!>9 -) /2I ;--7 2 IJJ,)..*,-+*062<,)4J07/J7)2-K.*BK+*06K20.63)D<7;7  LLL M)-*E -;*#* /2 .) BBB /. -;* FGHNN LLL '( 1)" ,;))2* -) "2* -;* ?@9 4*-;)6E -;*. 2/47+1 077*.6 -;* (/*+6 .04*2 0.6 -;*/# ,)##*27).6/.5 C0+"*2 -) -;* FGH +/O* -;* ()++)B/.5 *D047+*I !""#$%&&'())*'"+*,-$.'(/&,#0&#($"1)*21+*,-1$,)-3(4.#!#5),/*67(!)  24/-;P7;).*QRQSTUVWXYZ[P2-0-*RG'P)((/,*R1)"#)((/,*.04* F7). 2"34/--/.5 0 +*06 2",,*22("++1E 1)" 2;)"+6 2** 0 \>!M *.,)6*6 #*-"#. 2-#/.5 +/O* -;/2I ]^2-0-"2^IQE^4*2205*^I^>F__@>>^E^+*06K/6^I^Q^`  %. *##)# B/++ #*-"#. 0 \>!M *.,)6*6 2-#/ .5 +/O* -;/2I ]^2-0-"2^IWE^4*2205*^I^M!Ka%9%K>Fbc'99@a^` d;*. B* 2*- 1)"# )((/,* "7 /. )"# 212-*4E B* B/++ 0+2) #*,)#6 0. *40/+ 066#*22 B;*#* 0++ * ##)#2 2;)"+6 3* *40/+*6 -)< 9;0- B01 /. -;* *C*.- 0.1 )( 1)"# +*062 0#* #*e*,-*6 1)" B/++ #*,*/C* 0. *40/+ B/-; -;* *##)# ,)6* 0.6 0. *D7+0.0-/).< 90(3 5 =4/( 90(3 5 > ?@( 01 "&) AB C(D& 0)(5 A('7)0 @%0"1 E="%( ' .04* = *2 !B.*# (/#2- 0.6 +02- .04* /. ).* (/*+6 27)"2* >7)"2* (/#2- 0.6 +02- .04* /. ).* ( / *+6 7;).*Q = *2 c"2- ,).-0/ . Q[ 6/5/- 2 7;).*S c"2- ,).-0/ . Q[ 6/5/- 2 066#*22 ,/-1 2-0-* = *2 f/7 c"2- 3* C0+/6 V 6/5/- ()#40- )(( /,* = *2 _;)/,*2I =@>E M! ,)+)# ,)+ )# )( ;)"2* 2-1+* 7*- 2 1*2E .) .)-*2 -*D- *40/+ C0#,;0#gSVVh C0#,;0#gS[[h 3/5/.-gQ[h 3/5/.-gQ[h C0#,;0#gSVh C0#,;0#gSVh C0#,;0#gSh _;)/,*2 0#* %HE _%E _!E _9E AHE ?%E i= E c%E c!E M8E M\E M=E M_E !8E !iE &%E G'E >_E 9ME 9jE dk C0#,;0#gS[h C0#,;0#gSVh 9;/2 /2 27* ,/(/, -) *0,; )((/,*J6*0+*#E 1)" B/++ 3* 7#)C/6*6 B/-; -;/2 /.() )B.*6; )4* C0#,; 0#gS Vh C0#,;0#gSVh C0#,;0#gSVh 2-1+* )( -;* ;)"2* g-#0/+*#E 2/.5+* (04/+1E 3#/,OE #0.,;E #0/2*6 #0.,;E ,)+)./0+E *-,h C0#,;0#gTh /( -;*#* /2 /.() 1)" B0.- -) 7#)C/6* -;0- 6)*2.l- ;0C* /-l2 )B. (/*+6 1)" ,0. 0 66 /- /. -;* .)-*2 (/*+6 ;*#* C0#,;0#gSVUh &+*02* 2"77+1 ("++ *40/+ 066#*22E /.,+"6/.5 -;* 6)40/.

Upload: raff

Post on 06-Oct-2015

48 views

Category:

Documents


2 download

TRANSCRIPT

  • How to use our API for submitting leads to ConnectLeads

    Our API for electronically submitting leads really only consists of a simple HTTP request method. You can use either the HTTP POST method or the HTTP GET method. For testing purposes we have created a sandbox. Once you have tested and our web development department has confirmed that we received the data correctly, we will provide you with the live URL to post leads to.

    Fields to submit to the APIA page is attached with field types, required fields, and details for each field that the API will accept.

    Sandbox for testingFor testing, the URL to POST to is:http s ://connectleads.com/api/post_new_lead_sandbox.php *** Note, there is no www in the URL!! ***

    If you choose to use the GET method, then simply append the field names and their corresponding values to the URL like the following example:

    https://connectleads.com/api/post_new_lead_sandbox.php?name=john smith&phone1=1234567890&state=RI&office=yourofficename

    Upon submitting a lead successfully, you should see a JSON encoded return string like this:{"status":1,"message":"SUCCESS","lead_id":"1"}

    An error will return a JSON encoded string like this:{"status":6,"message":"NO_DATA_SUBMITTED"}

    When we set your office up in our system, we will also record an email address where all errors should be emailed to. That way in the event any of your leads are rejected you will receive an email with the error code and an explanation.

    Field Name Field Type in our DB Required Description/Notes

    name Yes Owner first and last name in one field

    spouse Spouse first and last name in one field

    phone1 Yes Must contain 10 digits

    phone2 Must contain 10 digits

    address

    city

    state Yes

    zip Must be valid 5 digit format

    office Yes

    Choices: YES, NO

    color color of house

    style

    pets yes, no

    notes text

    email

    varchar(255)

    varchar(200)

    bigint(10)

    bigint(10)

    varchar(25)

    varchar(25)

    varchar(2)

    Choices are AL, CA, CO, CT, FL, GA, KY, MA, MO, NH, NJ, NY, NC, OH, OK, PA, RI, SC, TN, TX, WV

    varchar(20)

    varchar(25)This is specific to each office/dealer, you will be provided with this info

    ownedhome varchar(25)

    varchar(25)

    varchar(25)style of the house (trailer, single family, brick, ranch, raised ranch, colonial, etc)

    varchar(3)

    if there is info you want to provide that doesn't have it's own field you can add it in the notes field here

    varchar(254)Please supply full email address, including the domain