Get Campaign
GET/affiliate-manager/:locationId/campaigns/:campaignId
Retrieve a single affiliate campaign by id for a location.
Request
API Version
v3Location Id
Campaign Id
Successful response
- application/json
- Schema
- Example (auto)
Schema
Campaign id
Location id the campaign belongs to
Campaign name
Campaign description
What the campaign tracks
formssurveyscalendersfunnelswebsitesstoreexternal_sourcecommunitySub track type
leadproductdonationWhether the campaign is live
Campaign currency
How often affiliates are paid out
PAY_7PAY_15PAY_30PAY_45PAY_60PAY_90Referral cookie lifetime in days
First tier commission type
flatpercentageFirst tier commission value
Number of commission tiers
Number of lead commission tiers
Whether one commission applies to every product on the campaign
Second tier commission type
flatpercentageSecond tier commission value
Whether setup fees count towards commission
Referral link slug
Full referral link
Domain the referral link points at
Funnel or page step id being tracked
Sub affiliate signup link
Whether sub affiliate signup is enabled
Whether sub affiliates are auto enrolled
Campaign creation timestamp
Campaign update timestamp
Per-tier commission configuration. This is what the commission engine applies; the flat commissionType and commission fields are the legacy fallback used only when this is empty.
Per-tier lead commission configuration, applied to lead-tracking campaigns
Products and prices attached to the campaign. For commission calculation use commissionV2[].productBasedCommission, which is typed and authoritative.
{
"_id": "6385d230f6d19db03eef6fb2",
"locationId": "ve9EPM428h8vShlRW1KT",
"name": "Summer launch",
"description": "Affiliate campaign for the summer launch",
"trackType": "funnels",
"subTrackType": "product",
"liveMode": true,
"currency": "USD",
"payoutFrequency": "PAY_30",
"cookieLife": 30,
"commissionType": "percentage",
"commission": 10,
"commissionTier": 1,
"leadCommissionTier": 1,
"isGlobalCommission": true,
"secondTierCommissionType": "percentage",
"secondTierCommission": 5,
"calculateSetupFee": false,
"referralPermalink": "summer-launch",
"referralRealLink": "https://example.com/summer-launch",
"domain": "example.com",
"stepId": "6385d230f6d19db03eef6fb3",
"subAfLink": "https://example.com/sub-affiliate-signup",
"enableSubAffiliateLink": false,
"enableAutoEnrollSubAffiliate": true,
"createdAt": "2026-01-01T00:00:00.000Z",
"updatedAt": "2026-01-02T00:00:00.000Z",
"commissionV2": [
{
"tier": 1,
"defaultCommission": {
"commissionType": "percentage",
"commission": 10
},
"productBasedCommission": [
{
"productId": "6385d230f6d19db03eef6fb9",
"productName": "Starter Course",
"priceId": "price_1MoBy5AbCdEfGhIj",
"commissionType": "flat",
"commission": 25
}
],
"commissionLength": {
"lengthType": "by-count",
"length": 3
},
"variableCommission": {
"enabled": "yes",
"count": 2,
"commissionType": "flat",
"commission": 5
}
}
],
"leadCommissionV2": [
{
"tier": 1,
"defaultCommission": {
"commissionType": "percentage",
"commission": 10
}
}
],
"products": [
{
"_id": "6385d230f6d19db03eef6fc1",
"productId": "6385d230f6d19db03eef6fb9",
"priceId": "price_1MoBy5AbCdEfGhIj",
"productName": "Starter Course",
"commission": 25,
"commissionType": "flat"
}
]
}