Skip to main content
Affiliate events are triggered when changes occur to affiliate accounts in your program.

Events

EventDescription
affiliate.createdNew affiliate signs up or is manually created
affiliate.confirmedAffiliate confirms their email address
affiliate.updatedAffiliate details or status are updated
affiliate.deletedAffiliate is removed from the program

Payload

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

Example Payloads

affiliate.created
{
  "id": "evt_abc123",
  "type": "affiliate.created",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "affiliateId": "aff_xyz789",
    "affiliateProgramId": "prog_abc123",
    "trackingId": "john-doe",
    "status": "PENDING",
    "email": "[email protected]",
    "name": "John Doe"
  }
}
affiliate.confirmed
{
  "id": "evt_abc123",
  "type": "affiliate.confirmed",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "affiliateId": "aff_xyz789",
    "affiliateProgramId": "prog_abc123",
    "trackingId": "john-doe",
    "status": "ACTIVE",
    "email": "[email protected]",
    "name": "John Doe"
  }
}
affiliate.updated
{
  "id": "evt_abc123",
  "type": "affiliate.updated",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "affiliateId": "aff_xyz789",
    "affiliateProgramId": "prog_abc123",
    "trackingId": "john-doe",
    "status": "ACTIVE",
    "email": "[email protected]",
    "name": "John Doe"
  }
}
affiliate.deleted
{
  "id": "evt_abc123",
  "type": "affiliate.deleted",
  "createdAt": "2024-01-15T10:30:00.000Z",
  "data": {
    "affiliateId": "aff_xyz789",
    "affiliateProgramId": "prog_abc123",
    "trackingId": "john-doe",
    "email": "[email protected]"
  }
}