This article will cover the following:
When to use these endpoints:
Use these read-only endpoints to sync your affiliate roster into external systems, build affiliate directory views, and retrieve the reference data you need before making updates.
Use these read-only endpoints to sync your affiliate roster into external systems, build affiliate directory views, and retrieve the reference data you need before making updates.
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 — Affiliates reference, which documents all available endpoints for this feature area.
Available Endpoints
Get Affiliates
Retrieves a list of affiliate records. Use to search by name, status, account manager, or tag; pull paginated lists for bulk operations; or sync your affiliate roster into an external system.
When to use: Sync affiliates into an external CRM, build management dashboards, or identify accounts by status for bulk operations.
GET /api/2/affiliates.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| affiliate_id | integer | No | Filter to a single affiliate by their unique numeric ID. |
| affiliate_name | string | No | Partial or full name filter. Supports partial matches. |
| affiliate_status | string | No | active | inactive | pending |
| account_manager_id | integer | No | Return only affiliates assigned to this account manager. |
| tag_id | integer | No | Filter by a specific tag ID. |
| start_at_row | integer | No | Pagination offset. Default 0. |
| row_limit | integer | No | Max records to return. Default 100, max 500. |
| sort_field | string | No | affiliate_id or affiliate_name. |
| sort_descending | boolean | No | true for descending sort. |
Sample request
GET https://yourdomain.cakemarketing.com/api/2/affiliates.json?api_key=YOUR_API_KEY&affiliate_status=active&account_manager_id=42&row_limit=50&start_at_row=0Sample response
{
"request_status": "Success",
"response": {
"affiliates": [
{
"affiliate": {
"affiliate_id": 67890,
"affiliate_name": "MediaBridge Partners",
"affiliate_status": { "id": 1, "name": "active" },
"account_manager": { "id": 42, "name": "Jordan Lee" },
"website": "https://www.mediabridgepartners.com",
"billing_cycle": { "id": 3, "name": "Monthly" },
"payment_method": { "id": 2, "name": "Wire Transfer" },
"minimum_payment_threshold": "100.00",
"date_created": "2023-06-15"
}
}
]
}
}Get Affiliate Offer
Retrieves the offer access configuration for a specific affiliate-offer pairing, including custom payout overrides.
When to use: Audit which payout a specific affiliate is receiving on an offer, or verify offer access before triggering campaign workflows.
GET /api/2/affiliate_offer.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| affiliate_id | integer | Yes | Affiliate ID. |
| offer_id | integer | Yes | Offer ID. |
Sample request
GET https://yourdomain.cakemarketing.com/api/2/affiliate_offer.json?api_key=YOUR_API_KEY&affiliate_id=67890&offer_id=12345Sample response
{
"request_status": "Success",
"response": {
"affiliate_offer": {
"affiliate_id": 67890,
"offer_id": 12345,
"payout": 20.00,
"payout_type": "CPA",
"affiliate_offer_status": "active"
}
}
}You may also be interested in:
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.
You may also be interested in:
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.