Skip to Content
Referhatch
Tools

Set a commission rate

Set an affiliate's percentage for future purchases. Enter 10 for 10%. Existing purchases keep the rate and commission saved when they were recorded.

curl https://api.referhatch.com/v1/set_commission_rate \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"affiliate_id":"your affiliate id","commission_rate":0}'

Input

FieldTypeDescription
affiliate_id (required)stringAffiliate ID in your account. Provide this or a referral code.
commission_rate (required)numberPercentage from 0 to 100. Enter 10 for 10%. Up to two decimal places.

Output

FieldTypeDescription
ok (required)boolean
errorobject
affiliateobject