Campaigns
Create campaign
Creates a new campaign in your organization.
POST
/
campaignsAuthorization
AuthorizationRequiredBearer <token>
API key authentication. Use your API key as the bearer token.
In: header
Request Body
application/jsonRequirednameRequiredstring
Campaign name (for internal use, affiliates do not see this name)
commission_typeRequiredstring
Whether the campaign gives percentage based or fixed amount commissions
Value in:
"percentage" | "fixed"commission_amountRequirednumber
Percentage or fixed amount commission rate (e.g. 20 would mean 20% or $20)
code_modeRequiredstring
Referral code type. "link" creates affiliate links, "coupon" creates promo codes, "both" creates both.
Value in:
"link" | "coupon" | "both"website_urlstring
Campaign website URL. Required when code_mode is "link" or "both".
reference_couponstring
Stripe coupon ID that's used to create affiliate promo codes. Required when code_mode is "coupon" or "both".
is_defaultboolean
Default:
falseCampaign created