Referrals
Create referral
Creates a new referral for an affiliate in your organization.
Referrals are automatically created and tracked when you follow the affiliate
links setup steps or affiliate promo codes setup
steps. Only use this endpoint to manually track
referred users from your backend. To manually track referred users from your
app's frontend, use the
window.promotekit.refer(email)
function instead.
POST
/
referralsAuthorization
AuthorizationRequiredBearer <token>
In: header
Request Body
application/jsonRequiredaffiliate_idRequiredstring
Format:
"uuid"emailRequiredstring
Format:
"email"stripe_customer_idstring
subscription_statusstring
Value in:
"active" | "signed_up" | "trialing" | "canceled" | "past_due"