Skip to Content
Referhatch
Tools

Register an affiliate

Create an affiliate in Referhatch and get a referral code. Set a commission percentage; 10 means 10%. Registration does not record a visit or purchase.

curl https://api.referhatch.com/v1/register_affiliate \
  -H "Authorization: Bearer $API_KEY" \
  -d '{"name":"your name"}'

Input

FieldTypeDescription
name (required)stringAffiliate name.
commission_ratenumberPercentage from 0 to 100. Enter 10 for 10%. Up to two decimal places.
referral_codestringOptional unique code. Use letters, numbers, dashes or underscores. Case sensitive.

Output

FieldTypeDescription
ok (required)boolean
errorobject
affiliateobject