Skip to main content
POST
/
v1
/
points
/
referral_code
/
{referral_code}
curl --request POST \
  --url 'https://mach-prod-536329393577.asia-northeast1.run.app/v1/points/referral_code/ABC'
{
  "code": "ABC",
  "percentage": 10,
  "referrer": "0xb20094DFede30AbEe3a8d549BbA828b6fd771106"
}
This endpoint retrieves information about a specific referral code, including the referrer wallet address and the percentage of the reward.

Path Parameters

referral_code
string
required
The referral code to look up

Response

code
string
The referral code
percentage
integer
Percentage of the reward given for using this code
referrer
string
Wallet address of the referrer who created the code
curl --request POST \
  --url 'https://mach-prod-536329393577.asia-northeast1.run.app/v1/points/referral_code/ABC'
{
  "code": "ABC",
  "percentage": 10,
  "referrer": "0xb20094DFede30AbEe3a8d549BbA828b6fd771106"
}

Status Codes

Status CodeDescription
200Success - Referral code information returned successfully
422Validation Error - Invalid referral code format
500Internal Server Error - Something went wrong on the server