Create referral
Records a "who-referred-whom" relationship between two customers. Each person
can only have one active referrer at a time:
- If no referral exists for
person, one is created. - If a referral exists and is still active (
expiredAt > now), the endpoint refuses to switch thereferrer(HTTP 409). Sending the samereferrerwith a newexpiredAtextends the window. - If the existing referral has already expired, the new payload replaces it.
Try-it values populated from environment ACME (Demo)
Authentication
Token
Send your user token in the x-guper-authorization header.
Headers
Request body
Content-Type:
application/json
Responses
Copied to clipboard