Skip to main content

coupon.redeemed

Disparado quando um cupom é resgatado em uma assinatura ou fatura.

Grupo: Catálogo

Payload

{
"id": "evt_01HXYZCPN666",
"type": "coupon.redeemed",
"created_at": "2026-05-20T19:00:00.000Z",
"environment": "production",
"version": "2026-03-01",
"data": {
"id": "cpn_01HCPN",
"organization_id": "org_01HORG",
"code": "WELCOME10",
"name": "Boas-vindas 10%",
"type": "percentage",
"percent_off": 10,
"amount_off_cents": null,
"currency": "BRL",
"duration": "once",
"duration_in_months": null,
"max_redemptions": 1000,
"times_redeemed": 142,
"valid_from": "2026-01-01T00:00:00.000Z",
"valid_until": "2026-12-31T23:59:59.000Z",
"status": "active",
"applies_to": "all_plans",
"metadata": {},
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-05-20T19:00:00.000Z"
},
"redemption": {
"id": "red_01HRED",
"billing_account_id": "ba_01HXY123",
"subscription_id": "sub_01HABCDEF",
"invoice_id": "inv_01HINV",
"discount_cents": 990,
"redeemed_at": "2026-05-20T19:00:00.000Z"
}
}