Coupon events are triggered when coupons are created or deleted for affiliates in your program.
Events
| Event | Description |
|---|
coupon.created | New coupon is created for an affiliate |
coupon.deleted | Coupon is deleted |
Payload
Event type (e.g., coupon.created)
ISO 8601 timestamp of when the event occurred
Event payload data.Show Data Object Properties
Unique identifier for the coupon
The affiliate this coupon belongs to
The program this coupon belongs to
The coupon/promo code string
Payment provider (e.g., stripe, paddle)
ISO 8601 timestamp when the coupon was created
Example Payloads
{
"id": "evt_abc123",
"type": "coupon.created",
"createdAt": "2024-01-15T10:30:00.000Z",
"data": {
"id": "cpn_xyz789",
"affiliate_id": "aff_abc123",
"program_id": "prog_def456",
"code": "JOHN20",
"provider": "stripe",
"created_at": "2024-01-15T10:30:00.000Z"
}
}
{
"id": "evt_abc123",
"type": "coupon.deleted",
"createdAt": "2024-01-15T10:30:00.000Z",
"data": {
"id": "cpn_xyz789",
"affiliate_id": "aff_abc123",
"program_id": "prog_def456",
"code": "JOHN20",
"provider": "stripe",
"created_at": "2024-01-15T10:30:00.000Z"
}
}