Create a program
affiliates:writeRate limit writesIdempotent with Idempotency-KeyCreates a program. commissions (at least one) say what the program pays: section products with commission as a whole percent 0–100, optionally limited to product_ids. The sections subscription, templates, package_fp and package_sp are refused (422) except for the ESTAGE platform program. tags must be tags of this project; with tags, every contact carrying one of them joins the program at once.
Authorization
ESTAGE-API-KeystringheaderrequiredA project key, est_live_…, from Settings → API keys. Call from server code only.
Body
application/jsonnamestringrequired≤ 255 charsis_activebooleanrequiredaccess_by_tagsbooleanrequiredtagsarray of integercommissionsarray of objectrequiredShow 4 fields
sectionstringrequiredproducts for a project's own program; the others are the ESTAGE platform program's only.
One of products, subscription, templates, package_fp, package_sp
commissionintegerrequired≥ 0≤ 100Percent of the sale.
commission_textstringnullable≤ 255 charsproduct_idsarray of integernullabledescriptionstringnullablecoverstringnullableredirectstringnullablepriorityintegernullableLower ranks first when a person is in several programs.
exclude_productsarray of integernullableprivate_grouparray of anynullablefeaturesarray of anynullableecosystembooleannullableHeaders
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-programs' \ --header 'ESTAGE-API-Key: est_live_your-api-key' \ --header 'Content-Type: application/json' \ --header 'Idempotency-Key: your-unique-key' \ --data '{ "name": "Partners", "is_active": true, "access_by_tags": true, "tags": [ 31 ], "commissions": [ { "section": "products", "commission": 30, "commission_text": "30% on every sale" } ] }'
{
"data": {
"id": 12,
"name": "Partners",
"description": null,
"cover": null,
"is_active": true,
"priority": 0,
"redirect": null,
"access_by_tags": true,
"tags": [
31
],
"exclude_products": [],
"private_group": null,
"features": null,
"ecosystem": false,
"commissions": [
{
"section": "products",
"commission": 30,
"commission_text": "30% on every sale",
"product_ids": []
}
],
"created_at": "2026-11-13T10:00:00Z",
"updated_at": "2026-11-13T10:00:00Z"
}
}{ error: { code, message, details } }.