Update an affiliate program
Updates an existing affiliate program. Requires the program uuid in the path
and all required fields in the body (this is a full replacement, not a partial update).
The update schema adds label, is_active, description, and promo fields
compared to the create schema.
When subscription_commission_type is set to repeating, the duration field
is required and must be greater than 0.
Path Parameters
UUID of the affiliate program to update.
Body Parameters
Short display name for the program.
Whether the program is active.
Detailed description of the program.
Promotional text or special offer details.
ISO 4217 currency code. Must be enabled on your account.
Fixed commission in smallest currency unit.
Percentage-based commission rate (0–100).
Days to wait before processing payouts.
Whether the first referring affiliate gets all credit.
enableddisabledDays tracking cookies remain valid (max 90).
How subscription commissions are handled.
onceforeverrepeatingMonths for repeating commissions. Required and > 0 when type is repeating.
Multilingual content keyed by language code. Each entry requires label and description.
Payment method identifiers for payouts.
Country/region codes where the program is available.
Whether the program is publicly visible.
Whether affiliate applications are automatically approved.
Whether the program appears in public directories.
Whether to send email notifications to affiliates.
Banner asset UUIDs for affiliates.
Product UUIDs included in the program.
UUID of the domain associated with this program.
{
"commission_amount": 500,
"commission_percent": 10.5,
"languages": {
"en": {
"label": "Updated Program",
"description": "Updated description"
}
},
"destinations": [
"worldwide"
],
"currency": "EUR",
"payments": [
"stripe"
]
}
Responses
Program updated successfully
Validation or business logic error. Returned when:
- Missing required fields (
uuid,languages,commission_amount,commission_percent,destinations,currency,payments) - Invalid
uuidformat commission_percentexceeds 100 orcookie_expiryexceeds 90- Invalid
currencyformat paymentsordestinationsare empty, contain invalid items, or have duplicatessubscription_commission_typeisrepeatingbutdurationis missing or 0languagesis empty, has invalid keys, or entries missinglabel/descriptionlabelempty or exceeds 120 chars;descriptionempty or exceeds 2000 chars;promoexceeds 240 charsbannersorproductscontain invalid UUIDs, duplicates, or exceed 100 items- Type mismatches or additional/unknown properties
Error codes:
| Code | Description |
|---|---|
| 1002 | Program or product not found |
| 10203 | Payment method not supported for the selected currency |
| 10314 | Both commission amount and percent are zero |
Missing or invalid API key