Submit a Ticket My Tickets
Welcome
Login  Sign up

How to Update Lead Fields via POST (GET)

This document outlines how to update an existing Lead using the "ckm_lead_id" parameter.

Creating a Lead


A Lead is submitted to CAKE per the Posting Doc.

Here's a sample Post (GET) String:

http://demotrk.cakemarketing.com/d.ashx?ckm_campaign_id=3870&ckm_key=Scrfdo7ZpJMNS89tiWtQq&ckm_subid=hnybdgr&f_name=Andy&cust_home_address=2244 West Coast Highway&home_city=Newport Beach&home_state=CA&cust_home_code=92663&customer_email_address=andy@cakemarketing.com&cust_work_phone=9495152040&cust_phone_home=9495152050&cust_mobile_cell=9495152060
&best_time=M&ip_address=8.8.8.8&country=US&opt_in=1&age=32&country=US&employed=Maybe

The Successful Response


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://demotrk.cakemarketing.com/d.ashx?ckm_campaign_id=3870&ckm_key=Scrfdo7ZpJMNS89tiWtQq&f_name=Bartholomew&customer_email_address=bart@pieselling.com&ckm_lead_id=C8097F17

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://demotrk.cakemarketing.com/d.ashx?ckm_campaign_id=3870&ckm_key=Scrfdo7ZpJMNS89tiWtQq&f_name=Bartholomew&customer_email_address=bart@pieselling.com&ckm_lead_id=C8097F17&ckm_resell=1

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.