Referrals
Create Referral
Create a new referral or convert an existing click to a referral
POST
Body Parameters
string
required
The unique identifier of the affiliate who referred this customer. The affiliate must belong to your team.
string
required
The customer’s email address. Must be a valid email format. If a referral with this email already exists for the program, the request will fail with a conflict error.
string
Your internal customer ID or identifier. Used to link the referral to a customer in your system.
string
Your internal subscription ID if this referral is for a subscription. Used to track subscription-based referrals.
string
Optional click ID to convert an existing click to a referral. If provided, the click will be updated to a referral with the specified status. The click must belong to your team and have status
CLICK.string
default:"lead"
The initial referral status. Valid values:
lead, trialing, customer, active, canceled, rejected. Defaults to lead. If set to any value other than lead, converted_at will be automatically set.string
Optional ISO 8601 timestamp to backdate the referral creation. If not provided, uses the current timestamp.
string
The customer’s name. Used to identify the referred customer.
object
Custom key-value data for storing additional information about the referral. You can store any JSON-serializable data here.
Response
The response includes the created referral object.boolean
Always
true for successful responsesobject
The created referral object.
