Mach API Endpoints
Get Referral Code
Gets information about a referral code
POST
This endpoint retrieves information about a specific referral code, including the referrer wallet address and the percentage of the reward.
Path Parameters
The referral code to look up
Response
The referral code
Percentage of the reward given for using this code
Wallet address of the referrer who created the code
Status Codes
| Status Code | Description |
|---|---|
| 200 | Success - Referral code information returned successfully |
| 422 | Validation Error - Invalid referral code format |
| 500 | Internal Server Error - Something went wrong on the server |