Save referral code to session
POST/ref/:code
Public endpoint that saves a referral code to the caller's session for later use; the code is applied automatically during user registration if it is a valid referral code. An empty code does not return 400: the response is 200 with status: "error" in the body.
Request
Responses
- 200
- 404
- 500
Referral code processed (success or a soft in-body error).
Referral code not found.
Internal server error.