TRACK UpdateConversionEvents API Version 6
Updated on 2019-10-01
Current Version: Version 6
Deprecated Version: V1, V2, V3
Requests Allowed: GET/SOAP/POST
Summary:
Returns a message indicating whether or not the conversion was updated.
Resource/WSDL Page:
http://<your_domain_here>/api/6/track.asmx?op=UpdateConversionEvents
Parameters
api_key | Must be a valid API key (existing and NOT expired) Example Values: Fo35NRAqvFLXoZxqB4aVMhh |
offer_id | Must be an existing offer ID Example Values: 123456 |
conversion_id | Must be an existing Conversion ID. Required if transaction_id is not present. Pass 0 if using transaction_id Example Values: 123456 |
transaction_id | Conversion Transaction ID. Required if either conversion_id is not present. Pass as blank if using conversion_id {Seereports.asmx > Conversions} |
payout | Payout Amount Example Values: 10.50
|
add_to_existing_payout | Add Amount to Existing Payout? ["TRUE" = Add, "FALSE" = Overwrite] Example Values: FALSE |
received | Revenue to be Added/Overwritten [Use a negative Dollar Amount to Remove Credit] Example Values: -123.45 |
received_option | How should the received field be handled with this request? Example Values: total_sale_amount or additional_sale_amount or total_revenue or additional_revenue or no_change |
disposition_type | Disposition Type to assign to the conversion Example Values: no_change or pending or rejected or approved or returned |
disposition_id | Not currently available in the user interface. Can be obtained with the ConversionDispositions API: https://getcake.freshdesk.com/support/solutions/articles/5000545835-track-conversiondispositions-version-2. Example Values: 25, 75, 3 |
update_revshare_payout | When the conversion is tied to a revshare campaign, do you want the received amount to update the payout amount Example Values: FALSE |
effective_date_option | The effective date these changes should be applied to. Accepts "today", "conversion_date" or "custom" Example Values: today |
custom_date | Must contain a date. This date field is only used on effective_date_option = custom, otherwise this date is ignored. Allowed formats: MM/DD/YYYY HH:MM:SS Example Values: 2014-0424 |
note_to_append | Freeform Notes. Can be left blank. Example Values: notes to append |
disallow_on_billing_status Required | If the conversion has been billed we should error indicating that it cannot be updated based off of the inputs for this field. Affiliate = Do NOT bill if affiliate has been paid(partially/fully) Advertiser = Do NOT bill if advertiser has been paid(partially/fully) Both = Do NOT bill if either affiliate or advertiser has been paid(partially/fully) Example Values: affiliate_paid or advertiser_paid or any_paid or ignore |
unpaid_disposition_id Required Type: UNASSIGNEDBYTE Length (Max/Min): N/A | Unpaid disposition IDs can be found using our GET UnpaidDispositions V1 API: https://support.getcake.com/a/solutions/articles/13000068558?portalId=5000031597 This value should equal 0 if payout= is greater than 0. If payout= is 0 then unpaid_disposition_id= should have the ID associated with the unpaid disposition ID |
**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
Success Scenario
<?xml version="1.0" encoding="UTF-8"?>
<update_conversion_response>
<success>true</success>
<message>Conversion Updated</message>
</update_conversion_response>
Already Billed Scenario
<?xml version="1.0" encoding="UTF-8"?>
<contact_addedit_response>
<success>false</success>
<message>Conversion has already been billed</message>
</contact_addedit_response>
Missing Required Fields
<update_conversion_response xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://cakemarketing.com/api/3/"><success>false
</success>
<message>Conversion ID, or Transaction ID Required
</message>
</update_conversion_response>
add_to_existing_payout=false, payout= is greater than 0, unpaid_disposition_id= greater than 0
<update_conversion_response xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://cakemarketing.com/api/5/">
<success>false</success>
<message>
Invalid unpaid_disposition_id and payout combination
</message>
</update_conversion_response>
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API Key does not exist or is expired |