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>
API key authentication. Use your API key as the bearer token.
In: header
Request Body
application/jsonRequiredaffiliate_idRequiredstring
UUID of the affiliate this referral belongs to
Format:
"uuid"emailRequiredstring
Email address of the referred customer
Format:
"email"stripe_customer_idstring
Stripe customer ID of the referred customer
subscription_statusstring
Subscription status of the referred customer
Value in:
"active" | "signed_up" | "trialing" | "canceled" | "past_due"Successful response