Skip to Content
Paycose Docs
FlowEvents

Promotion code events

What data you get for promotion_code.created, .updated, and .deleted.

Fires when a promotion code (a redeemable code tied to a coupon) is created, updated, or deleted.

Each event arrives as an event object. The examples on this page show its data.object.

Prop

Type

{
  "id": "promo_01J9ABCDEFGHJKMNPQRSTV",
  "object": "promotion_code",
  "coupon": "cpn_01J8XYZABCDEFGHJKMNPQR",
  "code": "SUMMER15",
  "active": true,
  "quota_used": 0,
  "quota_limit": 100,
  "expires_at": 1788220800,
  "metadata": {}
}

All three events share this shape, including .deleted, which sends the full object.