Submit a Ticket My Tickets
Welcome
Login  Sign up

TRACK UpdateConversionEvents API Version 6

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
Required
Type: STRING
Length (Max/Min): 50

Must be a valid API key (existing and NOT expired)

Example Values: Fo35NRAqvFLXoZxqB4aVMhh

offer_id
Required
Type: INT
Length (Max/Min): NA

Must be an existing offer ID

Example Values: 123456

conversion_id
Required -  OR transaction_id
Type: INT
Length (Max/Min): NA

Must be an existing Conversion ID. Required if transaction_id is not present. 

Pass 0 if using transaction_id

Example Values: 123456

transaction_id
Required
Type: STRING
Length (Max/Min): NA

Conversion Transaction ID. Required if either conversion_id is not present. 

Pass as blank if using conversion_id 

{Seereports.asmx > Conversions}

payout
Required
Type: DECIMAL
Length (Max/Min): NA

Payout Amount

Example Values: 10.50

 

add_to_existing_payout
Required
Type: BOOL
Length (Max/Min): NA

Add Amount to Existing Payout? ["TRUE" = Add, "FALSE" = Overwrite]

Example Values: FALSE

received
Required
Type: DECIMAL
Length (Max/Min): NA

Revenue to be Added/Overwritten [Use a negative Dollar Amount to Remove Credit]

Example Values: -123.45

received_option
Required
Type: ENUMERATION
Length (Max/Min): NA

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
Required
Type: ENUMERATION
Length (Max/Min): NA

Disposition Type to assign to the conversion

Example Values: no_change or pending or rejected or approved or returned

disposition_id
Required Value
Type: INT
Length (Max/Min): NA

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
Required
Type: BOOL
Length 9Max/Min): NA

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
Required
Type: ENUMERATION
Length (Max/Min): NA

The effective date these changes should be applied to.

Accepts "today", "conversion_date" or "custom"

Example Values: today

custom_date
Required
Type: DATETIME
Length (Max/Min): NA

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
Required
Type: STRING
Length (Max/Min): NA

Freeform Notes.  Can be left blank.

Example Values: notes to append

disallow_on_billing_status

Required
Type: ENUMERATION
Length (Max/Min): NA

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

https://cs1.cakemarketing.com/api/6/track.asmx/UpdateConversionEvents?api_key=0vHT5GHq6u84gZ8OxfY75Enycwwjaz&offer_id=135&conversion_id=16544&transaction_id=&payout=0&add_to_existing_payout=false&received=0&received_option=no_change&disposition_type=approved&disposition_id=3&update_revshare_payout=false&effective_date_option=today&custom_date=01/01/2016&note_to_append=notes&disallow_on_billing_status=affiliate_paid&unpaid_disposition_id=0


Sample XML Response:
GET: 

 

Success Scenario

 

<?xml version="1.0" encoding="UTF-8"?>
<update_conversion_response>
<success>true</success>
<message>Conversion Updated</message>
</update_conversion_response>
Null

 


 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>
Null

 


 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>
Null

 

 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

Did you find it helpful? Yes No

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