TRACK UpdateLeadPrice API V1
Updated on 2014-04-07
Current Version: 2
Deprecated Version: 
Requests Allowed: GET & SOAP
Summary:
Changing the price paid to an affiliate for a lead sold to a buyer.
Open Lead card and chick the Change Price button?
Resource/WSDL Page:
http://<your_domain_here>/api/1/track.asmx?op=UpdateLeadPrice
Parameters
| api_key | This api_key must be a valid API key (exisiting and NOT expired). You can obtain this api_key from within CAKE >> Setup >> Permissions in the API Key list. Example Value: Fo35NRAqvFLXoZxqB4aViaiYM7iVMhh | 
| vertical_id  | CAKE Vertical ID Example  | 
| lead_id | CAKE Lead ID Example  | 
| add_to_existing | Add Amount to Existing Revenue? ["TRUE" = Add, "FALSE" = Overwrite] Example Value: TRUE | 
| amount | Revenue to be Added/Overwritten [Use a negative Dollar Amount to Remove Credit] Example Value: -123.45 | 
| mark_as_returned | Mark the Conversion as Returned? ["TRUE", "FALSE"] Example Value: TRUE | 
| note_to_append | Freeform Notes | 
| billing_option | Apply Price Changes to which Bill? ["ignore_billing", "next_generated_bill", "latest_generated_bill"] Example Value: latest_generated_bill | 
**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
Sample XML Response:
<update_lead_price_response>
  <success>true</success>
  <message>Lead Updated</message>
</update_lead_price_response>
Example Error Messages: 
| Error Message | Likely Cause | 
| Invalid API Key | API Key does not exist or is expired |