Skip to main content
Coupon events are triggered when coupons are created or deleted for affiliates in your program.

Events

EventDescription
coupon.createdNew coupon is created for an affiliate
coupon.deletedCoupon is deleted

Payload

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

Example Payloads

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"
  }
}
coupon.deleted
{
  "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"
  }
}