Skip to main content
POST
/
v1
/
referral
/
create
Create Referral Code
curl --request POST \
  --url https://api.perpo.trade/v1/referral/create \
  --header 'Content-Type: application/json' \
  --header 'perpo-account-id: <perpo-account-id>' \
  --header 'perpo-key: <perpo-key>' \
  --header 'perpo-signature: <perpo-signature>' \
  --header 'perpo-timestamp: <perpo-timestamp>' \
  --data '
{
  "account_id": "<string>",
  "referral_code": "<string>",
  "max_rebate_rate": 123,
  "referrer_rebate_rate": 123,
  "referee_rebate_rate": 123
}
'
{
  "success": true,
  "timestamp": 1702989203989
}

Headers

perpo-timestamp
string
required
perpo-account-id
string
required
perpo-key
string
required
perpo-signature
string
required

Body

application/json
account_id
string
required

the account id of the referrer

referral_code
string
required

the referral code that admin wants to create

max_rebate_rate
number
required

the referral code’s rebate rate (max 1)

referrer_rebate_rate
number
required

rebate rate of referrer

referee_rebate_rate
number
required

rebate rate of referee

Response

200 - application/json

OK

success
boolean
required
Example:

true

timestamp
integer
Example:

1702989203989