Referrals
Create Referral
Create a new referral or convert an existing click to a referral
POST
Body Parameters
The unique identifier of the affiliate who referred this customer. The affiliate must belong to your team.
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.
Your internal customer ID or identifier. Used to link the referral to a customer in your system.
Your internal subscription ID if this referral is for a subscription. Used to track subscription-based referrals.
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.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.Optional ISO 8601 timestamp to backdate the referral creation. If not provided, uses the current timestamp.
The customer’s name. Used to identify the referred customer.
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.Always
true for successful responsesThe created referral object.
