ESTAGE Support
IdeasMy tickets

Update an offer

Permission affiliates:writeRate limit writesIdempotent with Idempotency-Key

The offer is sent whole: the same body and required fields as POST (name, is_active, type, program_id, programs, links). programs replaces the offer's program list; optional fields left out keep their value.

PATCHhttps://api.estage.com/v1/affiliate-offers/{id}

Authorization

ESTAGE-API-Keystringheaderrequired

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

Path parameters

idintegerrequired

Body

application/json
namestringrequired≤ 255 chars
is_activebooleanrequired
typestringrequired

One of subscription, products, templates, no_commission, packages

program_idintegerrequired
programsarray of integerrequired
linksarray of objectrequired
Show 3 fields
urlstring
titlestring
typestring
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 PATCH \
  --url 'https://api.estage.com/v1/affiliate-offers/affiliate-offer-id' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-key' \
  --data '{
    "name": "Summer sale",
    "is_active": false,
    "type": "products",
    "program_id": 12,
    "programs": [
      12
    ],
    "links": [
      {
        "title": "Landing",
        "url": "https://shop.example.com/summer",
        "type": "page"
      }
    ]
  }'
OK
{
  "data": {
    "id": 58,
    "name": "Summer sale",
    "description": null,
    "cover": null,
    "is_active": false,
    "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/summer",
        "type": "page"
      }
    ],
    "creatives": {
      "banners": null,
      "videos": null,
      "emails": null,
      "social": null
    },
    "program_id": 12,
    "program_ids": [
      12
    ],
    "updated_at": "2026-11-13T11:20:00Z"
  }
}
Example. Errors are { error: { code, message, details } }.