activeAffiliateReferralScheme
Return the current active referral reward scheme of a given affiliate organisation, if any exists.
Arguments
The account type for which to get the referral scheme.
The affiliate link subdomain.
Returns
ReferralSchemeTypeA referral scheme is a way for one account to earn a reward for referring another. This is achieved by the referred account using a url (provided by the referring account) to sign up.
Can create affiliate links
Can query affiliate links
Can update affiliate links
Can query affiliate links
Can update affiliate links
Examples
The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.
query ActiveAffiliateReferralScheme(
$accountType: ReferralSchemeAccountTypeOptions,
$subdomain: String!
) {
activeAffiliateReferralScheme(
accountType: $accountType,
subdomain: $subdomain
) {
canBeReferred
code
combinedRewardAmount
isUsageAtCapacity
loyaltyPointsBonus
maxRecurrence
referralDisplayUrl
referralUrl
referredRewardAmount
referrerGivenName
referrerRewardAmount
schemeType
}
}
Variables
{
"accountType": "DOMESTIC",
"subdomain": "from-perform-window-record-whose"
}
Response
{
"data": {
"activeAffiliateReferralScheme": {
"canBeReferred": true,
"code": "attack-would-easy-whom-fact",
"combinedRewardAmount": 3,
"isUsageAtCapacity": true,
"loyaltyPointsBonus": 53,
"maxRecurrence": 93,
"referralDisplayUrl": "picture-plant-view-site-suffer",
"referralUrl": "should-spring-painting-glass-enough",
"referredRewardAmount": 91,
"referrerGivenName": "Robert",
"referrerRewardAmount": 88,
"schemeType": "name-charge-strategy-machine-level"
}
}
}