How to Create and Update Affiliates via the CAKE API

This article will cover the following:

When to use these endpoints:
Use these endpoints to automate affiliate onboarding, sync status changes from external CRMs, and configure per-offer payout overrides without manual UI entry.
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

Create Affiliate

Creates a new affiliate account. Use for automated signup-to-approval workflows or when migrating partner data from another platform.

When to use: Automate affiliate onboarding when partners apply through an external portal and are approved based on predefined criteria.
POST /api/2/affiliate.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
affiliate_namestringYesAffiliate company or display name.
account_manager_idintegerYesAccount manager to assign.
affiliate_statusstringNoactive | inactive | pending. Default: pending.
websitestringNoAffiliate's primary website URL.
payment_type_idintegerNoPayment method type ID.
billing_cycle_idintegerNoBilling cycle ID (e.g. Net 15, Net 30).
minimum_payment_thresholddecimalNoMinimum 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.

When to use: Bulk status updates, fraud-based suspensions, or reassigning affiliate books when account managers change.
POST /api/2/update_affiliate.json
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
affiliate_idintegerYesID of the affiliate to update.
affiliate_namestringNoUpdated display name.
affiliate_statusstringNoactive | inactive | pending | rejected | suspended
account_manager_idintegerNoID 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.

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
ParameterTypeRequiredDescription
api_keystringYesYour CAKE API key.
affiliate_idintegerYesAffiliate ID.
offer_idintegerYesOffer ID.

Sample request

GET https://yourdomain.cakemarketing.com/api/2/affiliate_offer.json?api_key=YOUR_API_KEY&affiliate_id=67890&offer_id=12345

Sample response

{ "request_status": "Success", "response": { "affiliate_offer": { "affiliate_id": 67890, "offer_id": 12345, "payout": 20.00, "payout_type": "CPA", "affiliate_offer_status": "active" } } }


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.



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.