ESTAGE Support
IdeasMy tickets

Create a program

Permission affiliates:writeRate limit writesIdempotent with Idempotency-Key

Creates 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.

POSThttps://api.estage.com/v1/affiliate-programs

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Body

application/json
namestringrequired≤ 255 chars
is_activebooleanrequired
access_by_tagsbooleanrequired
tagsarray of integer
commissionsarray of objectrequired
Show 4 fields
sectionstringrequired

products 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≤ 100

Percent of the sale.

commission_textstringnullable≤ 255 chars
product_idsarray of integernullable
descriptionstringnullable
coverstringnullable
redirectstringnullable
priorityintegernullable

Lower ranks first when a person is in several programs.

exclude_productsarray of integernullable
private_grouparray of anynullable
featuresarray of anynullable
ecosystembooleannullable

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
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"
      }
    ]
  }'
Created
{
  "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"
  }
}
Example. Errors are { error: { code, message, details } }.