Skip to main content
PUT
Update promo code by id

Authorizations

Authorization
string
header
required

Your affiliate API key (Profile → API & AI tools in the affiliate dashboard), sent as Authorization: Bearer {api_key}

Headers

Account-ID
string
required

Account ID of the affiliate program, shown next to your API key under Profile → API & AI tools

Example:

"acc_123456"

Path Parameters

id
integer
required

Body

application/json
code
string

Code of the promo code

description
string

Description of the promo code

reward_id
integer

ID of the reward

promoter_campaign_id
integer

ID of the promoter campaign

metadata
object

Metadata of the promo code

details
object

Details of the promo code

Response

Promo code updated successfully

id
integer
code
string
reward
object
ext_id
string
description
string
company_id
integer
promoter_campaign_id
integer
metadata
object
details
object
archived_at
string<date-time>