This article will cover the following:
When to use these endpoints:
Use these endpoints to automate cap enforcement — retrieve current cap status, update limits programmatically, and pull creative assets for external delivery.
Use these endpoints to automate cap enforcement — retrieve current cap status, update limits programmatically, and pull creative assets for external delivery.
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 is part of the complete CAKE API — Offers reference, which documents all available endpoints for this feature area.
Available Endpoints
Update Offer
Updates an existing offer's payout, status, or expiry without touching the CAKE UI — essential for bulk updates or automated campaign management via script.
When to use: Automated payout adjustments, pausing expired offers on a schedule, or syncing offer status changes from an external system.
POST /api/2/update_offer.json
| Parameter | Type | Required | Description |
|---|---|---|---|
| api_key | string | Yes | Your CAKE API key. |
| offer_id | integer | Yes | ID of the offer to update. |
| offer_name | string | No | New display name. |
| offer_status | string | No | active | inactive | pending |
| payout | decimal | No | Updated affiliate payout. |
| revenue | decimal | No | Updated advertiser revenue. |
| expiration_date | datetime | No | New expiry date (YYYY-MM-DD HH:MM:SS). |
Sample request
POST https://yourdomain.cakemarketing.com/api/2/update_offer.json
{
"api_key": "YOUR_API_KEY",
"offer_id": 12345,
"offer_status": "inactive",
"payout": 20.00,
"expiration_date": "2026-09-30 23:59:59"
}Sample response
{
"request_status": "Success",
"offer": {
"offer_id": 12345,
"offer_name": "Auto Insurance Quote - US",
"offer_status": "inactive",
"payout": 20.00,
"expiration_date": "2026-09-30 23:59:59"
}
}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.