Check if a referral code is valid and view the associated reward information. This is useful when a customer has received a referral code and wants to confirm its validity and potential benefits.
code string required Example code parameter
Accept Example Content-Type Example success boolean timestamp string requestId string data object https://cloud.hostup.se/api/referral/validate/{code} curl -X GET "https://cloud.hostup.se/api/referral/validate/5EY4XVJF" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" {
"success": true,
"timestamp": "string",
"requestId": "string",
"data": {
"valid": true,
"referrerName": "string",
"reward": {
"amount": 0,
"currency": "string",
"expiresInDays": 0
}
}
}