Create an offer
affiliates:writeRate limit writesIdempotent with Idempotency-KeyCreates an offer: the pages affiliates may link to (links), the programs whose affiliates see it (programs) and its promo material. program_id and every id in programs must be programs of this project. A visit counts for the offer when the affiliate's link points at one of the links' url (host case, a closing slash and ref/ts/source parameters are ignored).
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Body
application/jsonnamestringrequired≤ 255 charstypestringrequiredOne of subscription, products, templates, no_commission, packages
program_idintegerrequiredThe offer's main program; must be a program of this project.
programsarray of integerrequiredIds of this project's programs whose affiliates get the offer. Replaces the list on every save.
linksarray of objectrequiredThe pages affiliates may link to.
Show 3 fields
urlstringThe page; visits are matched on it.
titlestringtypestringis_activebooleanrequireddescriptionstringnullablecoverstringnullabletitlestringnullable≤ 255 charssubtitlestringnullable≤ 255 charscontentstringnullablevideostringnullablecreative_bannersarray of anynullablecreative_videosarray of anynullablecreative_emailsarray of anynullablecreative_socialarray of anynullableHeaders
Idempotency-Keystring≤ 255 charsAny unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.
curl --request POST \ --url 'https://api.estage.com/v1/affiliate-offers' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "name": "Spring sale", "is_active": true, "type": "products", "program_id": 12, "programs": [ 12 ], "links": [ { "title": "Landing", "url": "https://shop.example.com/spring", "type": "page" } ], "title": "Promote our spring sale" }'
{
"data": {
"id": 58,
"name": "Spring sale",
"description": null,
"cover": null,
"is_active": true,
"type": "products",
"created_at": "2026-11-13T10:00:00Z",
"title": "Promote our spring sale",
"subtitle": null,
"content": null,
"video": null,
"links": [
{
"title": "Landing",
"url": "https://shop.example.com/spring",
"type": "page"
}
],
"creatives": {
"banners": null,
"videos": null,
"emails": null,
"social": null
},
"program_id": 12,
"program_ids": [
12
],
"updated_at": "2026-11-13T10:00:00Z"
}
}{ error: { code, message, details } }.