REPORTS LeadsbyAffiliateExport API Version 2
Updated on 2018-01/17
Current Version: Version 2
Deprecated Version: 1
Requests Allowed: GET&SOAP
Summary:
Returns an array of leads, potentially filtered by an Affiliate ID similarly to the data returned in the Lead By Affiliate report in the CAKE UI. In version 2 we have added the ability to filter by Offer, Vertical, Affiliate Manager, Lead tier IDs and upsells.
Note: This API does not support JSON requests.
Resource/WSDL Page:
http://yourdomainhere.com/api/2/reports.asmx?op=LeadsByAffiliateExport
Parameters
api_key Required Type: STRING Length (Max/Min): 50 | Must be a valid API key (existing and NOT expired) Example Values: Fo35NRAqvFLXoZxqB4aVMhh |
start_date Required Type: DATE Length (Max/Min): NA | Allowed formats: "YYYY-mm-dd", "dd-mm-YYYY", "mm-dd-YYYY", "mm-dd-YYYY hh:mm:ss" Example Values: 2014-04-24, 24-04-2014 |
end_date Required Type: DATE Length (Max/Min): NA | Allowed formats: "YYYY-mm-dd", "dd-mm-YYYY", "mm-dd-YYYY", "mm-dd-YYYY hh:mm:ss" When time stamp is excluded 00:00:00 is assumed, and data on end date will not be included. Example Values: 2014-04-24, 24-04-2014 |
source_affiliate_id Required Type: INT Length (Max/Min): NA | If passing anything <= 0 the result will include all affiliates. Example Values: 123456 |
vertical_id Required Type: Short Length (Max/Min): NA | Vertical ID found on the Vertical Card. enter 0 will extract all Verticals. Use GET Verticals API: https://support.getcake.com/solution/articles/13000005375-get-verticals-api-version-2 Example Values: 0, 1, 155 |
site_offer_id Required Type: INT Length (Max/Min): NA | Offer ID found on Offer Card, This is the identifier for a unique Offer, enter 0 will extract all Offers. Use EXPORT Offer API https://support.getcake.com/solution/articles/5000655203-export-offers-api-version-6 Example Values: 3, 6, 15 |
source_affiliate_manager_id Required Type: INT Length (Max/Min): NA | Affiliate manager ID overseeing affiliate source Enter 0 to include all Example Values: 1, 36, 154 |
upsell Required Type: Short Length (Max/Min): NA | Will return leads that were upsold. Example Values: upsells or non_upsells or upsells_and_non_upsells |
lead_tier_id Required Type: INT Length (Max/Min): NA | Use EXPORT LeadTiers API: https://support.getcake.com/solution/articles/13000003617-export-leadtiers-api-version-1 Enter 0 to include all Example Values: 2, 56 |
start_at_row Required Type: INT Length (Max/Min): NA | Must pass at least 0 as value, which means start at the beginning of the dataset. Example Values: 1 |
row_limit Required Type: INT Length (Max/Min): NA | Max Rows Returned - 50,000. Example Values: 5000 |
Example Request
Sample XML Response:
Example Error Messages:
Error Message | Likely Cause |
Invalid API Key | API key does not exist or is expired |