Create campaign
create_campaignCreate an affiliate campaign: what affiliates earn per sale and where their links send people. Returns the campaign and its joinUrl, the link to share with affiliates so they can sign up. Confirm the commission with the user before calling. A new campaign is active at once and, unless isPublic is false, listed in LinkJolt's Discovery marketplace where affiliates browse programs. Recurring commissions pay on renewals too. The plan's campaign limit applies. Requires Pro plan or higher; live keys only.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Campaign name affiliates see, at least 2 characters | |
| isPublic | No | List the campaign in the Discovery marketplace (default true) | |
| targetUrl | No | Where affiliate links send people, usually the business's website or pricing page | |
| description | No | What the program offers, shown to affiliates | |
| commissionType | Yes | Percentage of the sale, or a fixed amount per sale | |
| commissionValue | Yes | The percent (e.g. 20) or the fixed amount in the brand currency (e.g. 30) | |
| autoApproveAffiliates | No | Approve affiliates who join through the join link without review (default false) | |
| recurringCommissionMode | No | Limit renewals by months since the first sale, or by number of payments (default duration) | |
| recurringCommissionType | No | Renewals pay the same rate as the first sale, or a custom rate (default same) | |
| recurringCommissionCount | No | Payments that pay commission, including the first; omit for no limit | |
| recurringCommissionValue | No | The renewal rate when recurringCommissionType is custom | |
| enableRecurringCommissions | No | Also pay commission on subscription renewals (default false) | |
| recurringCommissionDurationMonths | No | Months of renewals that pay commission; omit for no limit |