How to Pull Conversion and Sub ID Reports via the CAKE API

This article will cover the following:

When to use these endpoints:
Use these endpoints for granular analysis — the Conversion Report for fraud review and payout auditing, and the Sub ID Report for placement-level performance attribution within affiliate campaigns.
Authentication: All CAKE API requests require your api_key parameter. Find yours under Setup → System Access → API Keys.
Part of a series: This focused guide covers specific endpoints from the complete CAKE API — Reporting reference, which documents all available endpoints for this feature area.

Available Endpoints

Conversion Report

Row-level visibility into individual conversion events including status. Critical for fraud review, payout reconciliation, and postback debugging.

When to use: Audit individual conversion records; filter by status to find rejections; debug postback issues by inspecting conversion-level data.
GET /api/2/report/conversion.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
start_datedateYesStart date (YYYY-MM-DD).
end_datedateYesEnd date (YYYY-MM-DD).
offer_idintegerNoFilter by offer.
affiliate_idintegerNoFilter by affiliate.
conversion_statusstringNoapproved | pending | rejected
start_at_rowintegerNoPagination offset.
row_limitintegerNoMax rows. Default 100, max 10000.
sort_fieldstringNoField to sort by.
sort_descendingbooleanNotrue for descending.

Sample request

GET https://yourdomain.cakemarketing.com/api/2/report/conversion.json?api_key=YOUR_API_KEY&start_date=2026-01-01&end_date=2026-01-31&offer_id=12345&conversion_status=approved&row_limit=100

Sample response

{ "request_status": "Success", "response": { "data": { "conversions": [ { "conversion_id": 998877, "conversion_date": "2026-01-15 14:30:00", "offer_id": 12345, "affiliate_id": 67890, "payout": 18.00, "revenue": 22.00, "conversion_status": "approved", "unique_id": "ORD-98765" } ] } } }


Sub ID Report

Breaks down performance by Sub ID values — identify which sub-publishers, placements, or channels drive the best results within a campaign.

When to use: Identify best-performing sub-publishers or traffic placements within an affiliate's campaign.
GET /api/2/report/subid.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
start_datedateYesStart date (YYYY-MM-DD).
end_datedateYesEnd date (YYYY-MM-DD).
offer_idintegerNoFilter to a single offer.
affiliate_idintegerNoFilter to a single affiliate.
sub_idstringNoFilter to a specific Sub ID value.
start_at_rowintegerNoPagination offset.
row_limitintegerNoMax rows. Default 100, max 10000.

Sample request

GET https://yourdomain.cakemarketing.com/api/2/report/subid.json?api_key=YOUR_API_KEY&start_date=2026-01-01&end_date=2026-01-31&affiliate_id=67890&offer_id=12345

Sample response

{ "request_status": "Success", "response": { "data": { "rows": [ { "sub_id": "email_list_a", "clicks": 1820, "conversions": 94, "payout": 1692.00, "epc": 0.930 }, { "sub_id": "display_banner", "clicks": 1390, "conversions": 48, "payout": 864.00, "epc": 0.622 } ] } } }



If you have any questions, please reach out to your dedicated CAKE Client Success Manager/Account Manager or contact the CAKE Support Team at support@getCAKE.com.

Did you find it helpful? Yes No

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