Update referral code
PUT
/affiliateYou can use this endpoint to update your affiliate referral code. You old referral links will continue to work properly.
Request
Body Params application/json
referral_code
string
required
>= 5 characters<= 20 characters
Example
{
"referral_code": "myawesomewebsite"
}
Request samples
Responses
Updated referral code(200)
Updated referral code
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
referral_code
string
required
referral_url
string
required
referrals_turnover
integer
required
commission
integer
required
estimated_earnings
number
required
all_time_earnings
number
required
next_payout_in_days
integer
required
Example
{
"referral_code": "myawesomewebsite2",
"referral_url": "https://www.vpsbg.eu/aff/myawesomewebsite2",
"referrals_turnover": 30,
"commission": 5,
"estimated_earnings": 1.5,
"all_time_earnings": 1.5,
"next_payout_in_days": 15
}
Last modified: 3 months ago