ESTAGE Support
IdeasMy tickets

Create an offer

Permission affiliates:writeRate limit writesIdempotent with Idempotency-Key

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

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

Authorization

ESTAGE-API-Keystringheaderrequired

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

Body

application/json
namestringrequired≤ 255 chars
typestringrequired

One of subscription, products, templates, no_commission, packages

program_idintegerrequired

The offer's main program; must be a program of this project.

programsarray of integerrequired

Ids of this project's programs whose affiliates get the offer. Replaces the list on every save.

linksarray of objectrequired

The pages affiliates may link to.

Show 3 fields
urlstring

The page; visits are matched on it.

titlestring
typestring
is_activebooleanrequired
descriptionstringnullable
coverstringnullable
titlestringnullable≤ 255 chars
subtitlestringnullable≤ 255 chars
contentstringnullable
videostringnullable
creative_bannersarray of anynullable
creative_videosarray of anynullable
creative_emailsarray of anynullable
creative_socialarray of anynullable

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