cURL
curl --request POST \ --url https://api-dev.withflock.com/referrals/validate-code \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "referralCode": "<string>" }'
{ "referralCode": "<string>" }
Validate a referral code
The response is of type object.
object