Create an affiliate program
Creates a new affiliate program with commission structure, multilingual content, destination targeting, and payment methods.
When subscription_commission_type is set to repeating, the duration field
is required and must be greater than 0.
Body Parameters
ISO 4217 currency code for commission payments. Must be a currency enabled on your account.
Fixed commission amount in the smallest currency unit (e.g. cents).
Percentage-based commission rate (0–100).
Days to wait before processing affiliate payouts.
How subscription commissions are handled:
once– commission on first payment onlyforever– commission on all paymentsrepeating– commission fordurationmonths (requiresduration> 0)
onceforeverrepeatingDuration in months for repeating commissions. Required and must be > 0 when subscription_commission_type is repeating.
Whether the first referring affiliate gets all commission credit.
enableddisabledDays that affiliate tracking cookies remain valid (max 90).
Supported payment method identifiers for affiliate payouts.
Country/region codes where the program is available.
Whether the program is publicly visible to potential affiliates.
Whether affiliate applications are automatically approved.
Whether the program appears in public program directories.
Whether to send email notifications to affiliates about program updates.
Array of banner asset UUIDs for affiliates to use in marketing.
Array of product UUIDs included in this program.
Multilingual content keyed by language code (e.g. en, de).
Each entry requires label and description.
UUID of the domain/website associated with this program.
{
"commission_amount": 500,
"commission_percent": 10.5,
"languages": {
"en": {
"label": "My Program",
"description": "A great affiliate program"
}
},
"destinations": [
"worldwide"
],
"currency": "EUR",
"payments": [
"stripe"
]
}
Responses
Program created successfully
Validation or business logic error. Returned when:
- Missing required fields (
commission_amount,commission_percent,languages,destinations,currency,payments) commission_percentexceeds 100cookie_expiryexceeds 90- Invalid
currencyformat (must be enabled on your account) paymentsordestinationsare empty arrays, contain invalid items, or have duplicatessubscription_commission_typeisrepeatingbutdurationis missing or 0languagesis empty, has invalid keys, or missinglabel/descriptionlabelshorter than 3 or longer than 240 charactersdescriptionexceeds 5000 charactersbannersorproductscontain invalid UUIDs, duplicates, or exceed 100 items- Type mismatches or additional/unknown properties
Error codes:
| Code | Description |
|---|---|
| 1002 | Product not found |
| 10203 | Payment method not supported for the selected currency |
| 10314 | Both commission amount and percent are zero |
| 10315 | Domain not found |
Missing or invalid API key