Skip to main content
Referral events track the customer journey from initial click to conversion.

Events

EventDescription
referral.updatedReferral is created or updated (universal event)
referral.leadReferral transitions to lead state
referral.convertedReferral converts to paying customer
referral.deletedReferral is deleted

Referral Statuses

StatusDescription
CLICKInitial click tracked, no further action yet
LEADUser signed up but hasn’t purchased
TRIALINGCustomer is in a trial period
CUSTOMERCustomer made a one-time purchase
ACTIVECustomer has an active subscription
CANCELEDCustomer canceled their subscription
REJECTEDReferral was rejected (fraud, policy violation)

Payload

id
string
Unique event identifier
type
string
Event type (e.g., referral.converted)
createdAt
string
ISO 8601 timestamp of when the event occurred
data
object
Event payload data.

Example Payloads

referral.lead
{
  "id": "evt_abc123",
  "type": "referral.lead",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "referralId": "ref_xyz789",
    "affiliateId": "aff_abc123",
    "affiliateProgramId": "prog_def456",
    "trackingId": "john-doe",
    "status": "LEAD",
    "email": "[email protected]",
    "customerId": null,
    "ip": "192.168.1.1",
    "referrer": "https://blog.example.com/review"
  }
}
referral.converted
{
  "id": "evt_abc123",
  "type": "referral.converted",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "referralId": "ref_xyz789",
    "affiliateId": "aff_abc123",
    "affiliateProgramId": "prog_def456",
    "trackingId": "john-doe",
    "status": "CUSTOMER",
    "email": "[email protected]",
    "customerId": "cus_stripe123",
    "ip": "192.168.1.1",
    "referrer": "https://blog.example.com/review"
  }
}
referral.deleted
{
  "id": "evt_abc123",
  "type": "referral.deleted",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "referralId": "ref_xyz789",
    "affiliateId": "aff_abc123",
    "affiliateProgramId": "prog_def456",
    "trackingId": "john-doe",
    "status": "CUSTOMER",
    "email": "[email protected]"
  }
}