Submit a Ticket My Tickets
Welcome
Login  Sign up

GET LeadInfo API Version 1

GET LeadInfo API Version 1

Updated on 2016-02-25
Current Version: Version 1
Deprecated Version: NA
Requests Allowed: GET&SOAP


Summary:

Returns lead information


Resource/WSDL Page:

http://<your_domain_here>/api/1/get.asmx?op=LeadInfo


Parameters

api_key
Required
Type: STRING

Must be a valid API key (existing and not expired) 
Example Values: RUxep4nIQQmSAFn4JFECgOMdvJLeocp

lead_id
Required
Type: STRING
Example Values: 77C352B8
vertical_id
Required
Type: STRING
Obtained via GET Verticals API or EXPORT LeadsByAffiliate or EXPORT LeadsByBuyer API. Pass 0 for all verticals
Example Values: 42

 **Note all optional parameters still need to be passed through in the actual call. These parameters do not need a value (therefore you can use a null value). 

 

Example Request

GET
https://demo-new.cakemarketing.com/api/1/get.asmx/LeadInfo?api_key=7kkLImWsRr2kPLjBwrPEd2g07ks8daj&lead_id=B27B2DF0&vertical_id=1644

 

Sample XML Response:


  

<lead_info_response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cakemarketing.com/api/1/">
<success>true</success>
<row_count>1</row_count>
<lead_id>B27B2DF0</lead_id>
<personal_info>
<first_name>luislast</first_name>
<last_name/>
<email_address/>
<address>
<street/>
<city/>
<state/>
<zip_code/>
<country/>
</address>
<ip_address>12.9.20.2</ip_address>
<phone_work/>
<phone_home/>
<phone_cell/>
<best_call_time/>
<opt_in>false</opt_in>
</personal_info>
<traffic_info>
<lead_date>2017-07-13T08:37:42.17</lead_date>
<payout>
<currency_id>1</currency_id>
<amount>11.0000</amount>
<formatted_amount>$11.00</formatted_amount>
</payout>
<affiliate>
<affiliate_id xmlns="API:id_name_store">17099</affiliate_id>
<affiliate_name xmlns="API:id_name_store">Luis billing</affiliate_name>
</affiliate>
<campaign>
<campaign_id xmlns="API:id_name_store">68429</campaign_id>
<campaign_name xmlns="API:id_name_store">LC Host-n-Post - CPA - $11.00</campaign_name>
</campaign>
<creative_id>25632</creative_id>
<subid_1/>
<subid_2/>
<subid_3/>
<subid_4/>
<subid_5/>
<referrer/>
<pixel_fired>false</pixel_fired>
<returned_to_affiliate>false</returned_to_affiliate>
<test>false</test>
<upsell>false</upsell>
</traffic_info>
<all_vertical_data>
<data xmlns="">
<ckm2>ABCD</ckm2>
</data>
</all_vertical_data>
<dispositions/>
<pings>
<ping>
<sent_date>2017-07-13T08:37:42.847</sent_date>
<received_date>2017-07-13T08:37:42.96</received_date>
<buyer>
<buyer_id xmlns="API:id_name_store">257</buyer_id>
<buyer_name xmlns="API:id_name_store">[H] Test Buyer</buyer_name>
</buyer>
<buyer_contract>
<buyer_contract_id xmlns="API:id_name_store">329</buyer_contract_id>
<buyer_contract_name xmlns="API:id_name_store">LC Test 2</buyer_contract_name>
</buyer_contract>
<response_disposition>Unknown Response</response_disposition>
<session_id/>
</ping>
</pings>
<posts>
<post>
<sent_date>2017-07-13T08:37:42.423</sent_date>
<received_date>2017-07-13T08:37:42.633</received_date>
<buyer>
<buyer_id xmlns="API:id_name_store">268</buyer_id>
<buyer_name xmlns="API:id_name_store">LC Buyer</buyer_name>
</buyer>
<buyer_contract>
<buyer_contract_id xmlns="API:id_name_store">355</buyer_contract_id>
<buyer_contract_name xmlns="API:id_name_store">LC addedit1</buyer_contract_name>
</buyer_contract>
<response_disposition>Unknown Response</response_disposition>
<redirect_url/>
<buyer_lead_id/>
</post>
<post>
<sent_date>2017-07-13T08:37:42.637</sent_date>
<received_date>2017-07-13T08:37:42.843</received_date>
<buyer>
<buyer_id xmlns="API:id_name_store">268</buyer_id>
<buyer_name xmlns="API:id_name_store">LC Buyer</buyer_name>
</buyer>
<buyer_contract>
<buyer_contract_id xmlns="API:id_name_store">354</buyer_contract_id>
<buyer_contract_name xmlns="API:id_name_store">LC addedit</buyer_contract_name>
</buyer_contract>
<response_disposition>Unknown Response</response_disposition>
<redirect_url/>
<buyer_lead_id/>
</post>
<post>
<sent_date>2017-07-13T08:37:42.97</sent_date>
<received_date>2017-07-13T08:37:42.973</received_date>
<buyer>
<buyer_id xmlns="API:id_name_store">268</buyer_id>
<buyer_name xmlns="API:id_name_store">LC Buyer</buyer_name>
</buyer>
<buyer_contract>
<buyer_contract_id xmlns="API:id_name_store">447</buyer_contract_id>
<buyer_contract_name xmlns="API:id_name_store">LC Credit Test</buyer_contract_name>
</buyer_contract>
<response_disposition>Success</response_disposition>
<received>
<currency_id>1</currency_id>
<amount>10.0000</amount>
<formatted_amount>$10.00</formatted_amount>
</received>
<redirect_url/>
<buyer_lead_id/>
</post>
</posts>
<sales>
<sale>
<sold_date>2017-07-13T08:37:42.973</sold_date>
<multisell>false</multisell>
<received>
<currency_id>1</currency_id>
<amount>10.0000</amount>
<formatted_amount>$10.00</formatted_amount>
</received>
<buyer>
<buyer_id xmlns="API:id_name_store">268</buyer_id>
<buyer_name xmlns="API:id_name_store">LC Buyer</buyer_name>
</buyer>
<buyer_contract>
<buyer_contract_id xmlns="API:id_name_store">447</buyer_contract_id>
<buyer_contract_name xmlns="API:id_name_store">LC Credit Test</buyer_contract_name>
</buyer_contract>
<response_disposition>Success</response_disposition>
<returned>false</returned>
<cherry_picked>false</cherry_picked>
<bulk_sale>false</bulk_sale>
<replacement>false</replacement>
<lead_status/>
</sale>
</sales>
</lead_info_response>

  


Example Error Messages: 

Error Message
Likely Cause
Invalid API Key
API key does not exist or is expired

Did you find it helpful? Yes No

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