This document outlines how to update a Lead via the "ckm_lead_id" Parameter.

Creating a Lead




A Lead is Submitted to CAKE Basic per the Posting Doc.


Here's a sample Post (GET) String:


http://devtrk3.cakemarketing.com/d.ashx?ckm_campaign_id=29247&ckm_key=KEY&ckm_subid=hnybdgr&f_name=karen&cust_home_address=2244%20West%20Coast%20Highway&home_city=Newport%20Beach&home_state=CA&cust_home_code=92663&customer_email_address=testing@cakemarketing.com&cust_work_phone=1234567890&cust_phone_home=1234567890&cust_mobile_cell=1234567890%20&best_time=M&ip_address=8.8.8.8&country=US&opt_in=1&age=32&country=US&employed=Maybe



The Successful Response

<result><code>0</code><msg>success</msg><leadid>75CA2BB4</leadid><price>1.00</price></result>



A Successful Response returns the following XML (please note the "leadid"):


<result>
    <code>0</code>
    <msg>success</msg>
    <leadid>C8097F17</leadid>
    <price>25.00</price>
</result>



Updating the Lead




To Update the Lead, we send the same Post String as before, but ONLY with the Updated Fields and the additional "ckm_lead_id" Parameter with the Lead's LeadID inserted. For my example, I want to change the First Name and Email Address of the Lead:


http://devtrk3.cakemarketing.com/d.ashx?ckm_campaign_id=29247&ckm_key=KEY&ckm_subid=hnybdgr&f_name=Nancy&cust_home_address=2244%20West%20Coast%20Highway&home_city=Newport%20Beach&home_state=CA&cust_home_code=92664&customer_email_address=testing@cakemarketing.com&cust_work_phone=1234567890&cust_phone_home=1234567890&cust_mobile_cell=1234567890%20&best_time=M&ip_address=8.8.8.8&country=US&opt_in=1&age=32&country=US&employed=Maybe&ckm_lead_id=75CA2BB4





Re-queuing Leads



To re-queue leads, you can take the lead update method and include a single parameter to send the lead to queue. This parameter is "ckm_resell" this is a Boolean parameter so you will pass "1" for TRUE and "0" for FALSE.


http://devtrk3.cakemarketing.com/d.ashx?ckm_campaign_id=29247&ckm_key=KEY&ckm_subid=hnybdgr&f_name=Nancy&cust_home_address=2244%20West%20Coast%20Highway&home_city=Newport%20Beach&home_state=CA&cust_home_code=92664&customer_email_address=testing@cakemarketing.com&cust_work_phone=1234567890&cust_phone_home=1234567890&cust_mobile_cell=1234567890%20&best_time=M&ip_address=8.8.8.8&country=US&opt_in=1&age=32&country=US&employed=Maybe&ckm_lead_id=75CA2BB4&ckm_resell=1