Events
Payload
string
Unique event identifier
string
Event type (e.g.,
coupon.created)string
ISO 8601 timestamp of when the event occurred
object
Event payload data.
Example Payloads
coupon.created
coupon.deleted
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Webhook events for affiliate coupon lifecycle changes
| Event | Description |
|---|---|
coupon.created | New coupon is created for an affiliate |
coupon.deleted | Coupon is deleted |
coupon.created){
"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"
}
}
Was this page helpful?
