Skip to main content
Version: 2021-04-15

Get Campaign

GET 

/affiliate-manager/:locationId/campaigns/:campaignId

Retrieve a single affiliate campaign by id for a location.

Request

Version stringrequired

API Version

Available options2021-04-15
locationId stringrequired

Location Id

campaignId stringrequired

Campaign Id

application/json

Successful response

Schema
    _idstringrequired

    Campaign id

    locationIdstringrequired

    Location id the campaign belongs to

    namestringrequired

    Campaign name

    descriptionstring

    Campaign description

    trackTypestring

    What the campaign tracks

    Available optionsformssurveyscalendersfunnelswebsitesstoreexternal_sourcecommunity
    subTrackTypestring

    Sub track type

    Available optionsleadproductdonation
    liveModebooleanrequired

    Whether the campaign is live

    currencystring

    Campaign currency

    payoutFrequencystring

    How often affiliates are paid out

    Available optionsPAY_7PAY_15PAY_30PAY_45PAY_60PAY_90
    cookieLifenumberrequired

    Referral cookie lifetime in days

    commissionTypestring

    First tier commission type

    Available optionsflatpercentage
    commissionnumber

    First tier commission value

    commissionTiernumber

    Number of commission tiers

    leadCommissionTiernumber

    Number of lead commission tiers

    isGlobalCommissionboolean

    Whether one commission applies to every product on the campaign

    secondTierCommissionTypestring

    Second tier commission type

    Available optionsflatpercentage
    secondTierCommissionnumber

    Second tier commission value

    calculateSetupFeeboolean

    Whether setup fees count towards commission

    referralPermalinkstring

    Referral link slug

    referralRealLinkstring

    Full referral link

    domainstring

    Domain the referral link points at

    stepIdstring

    Funnel or page step id being tracked

    subAfLinkstring

    Sub affiliate signup link

    enableSubAffiliateLinkboolean

    Whether sub affiliate signup is enabled

    enableAutoEnrollSubAffiliateboolean

    Whether sub affiliates are auto enrolled

    createdAtstring

    Campaign creation timestamp

    updatedAtstring

    Campaign update timestamp

    commissionV2object[]

    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.

    leadCommissionV2object[]

    Per-tier lead commission configuration, applied to lead-tracking campaigns

    productsobject[]

    Products and prices attached to the campaign. For commission calculation use commissionV2[].productBasedCommission, which is typed and authoritative.