This article will cover the following:
Use these endpoints to automate affiliate onboarding, sync status changes from external CRMs, and configure per-offer payout overrides without manual UI entry.
api_key parameter. Find yours under Setup → System Access → API Keys.Available Endpoints
Create Affiliate
Creates a new affiliate account. Use for automated signup-to-approval workflows or when migrating partner data from another platform.
POST /api/2/affiliate.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| affiliate_name | string | Yes | Affiliate company or display name. |
| account_manager_id | integer | Yes | Account manager to assign. |
| affiliate_status | string | No | active | inactive | pending. Default: pending. |
| website | string | No | Affiliate's primary website URL. |
| payment_type_id | integer | No | Payment method type ID. |
| billing_cycle_id | integer | No | Billing cycle ID (e.g. Net 15, Net 30). |
| minimum_payment_threshold | decimal | No | Minimum earnings before payment is issued. |
Sample request
POST https://yourdomain.cakemarketing.com/api/2/affiliate.json
{
"api_key": "YOUR_API_KEY",
"affiliate_name": "New Media Group Inc",
"account_manager_id": 42,
"affiliate_status": "active",
"website": "https://newmediagroup.example.com",
"payment_type_id": 2,
"billing_cycle_id": 3,
"minimum_payment_threshold": 100.00
}Sample response
{
"request_status": "Success",
"affiliate": {
"affiliate_id": 67891,
"affiliate_name": "New Media Group Inc",
"affiliate_status": "active",
"account_manager": { "id": 42, "name": "Jordan Lee" },
"date_created": "2026-06-19 09:30:00"
}
}Update Affiliate
Updates an affiliate's status, name, or account manager. Use when automating tier changes, suspending affiliates based on fraud signals, or reassigning accounts.
POST /api/2/update_affiliate.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| affiliate_id | integer | Yes | ID of the affiliate to update. |
| affiliate_name | string | No | Updated display name. |
| affiliate_status | string | No | active | inactive | pending | rejected | suspended |
| account_manager_id | integer | No | ID of the new account manager. |
Sample request
POST https://yourdomain.cakemarketing.com/api/2/update_affiliate.json
{
"api_key": "YOUR_API_KEY",
"affiliate_id": 67890,
"affiliate_status": "suspended",
"account_manager_id": 7
}Sample response
{
"request_status": "Success",
"affiliate": {
"affiliate_id": 67890,
"affiliate_name": "MediaBridge Partners",
"affiliate_status": "suspended",
"account_manager": { "id": 7, "name": "Mark Johnson" }
}
}Get Affiliate Offer
Retrieves the offer access configuration for a specific affiliate-offer pairing, including custom payout overrides.
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.