> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Event club.coupon.redeemed

> Generated reference of the Club coupon redeemed event (Club Maihue): triggers, channels, rules, template variables and an example payload.

> [!NOTE]
>
> This page is generated from the event registry with `pnpm manual:events`. Do not edit it by hand: change the event in the code and regenerate.

## At a glance

| Field | Value |
| - | - |
| Key | `club.coupon.redeemed` |
| Name | Club coupon redeemed |
| Description | A Club Maihue voucher was redeemed at the venue |
| Domain | Club Maihue |
| Category | Transactional |
| Kind | Flow. It fires on its own when the business fact happens to one account or address. |
| Brand | MaihueGO |
| Audience | All account users |
| Subject type | `code_coupon_account` |
| Valid for | 1 day (`P1D`) |
| Opt-out per event | Yes: the customer can turn it off per channel in their preferences |
| Bypass | Skips frequency cap (from the category); Skips quiet hours (declared by the event) |
| System gateway | `horizon-club` |

## What triggers it

It happens in these business flows:

* Venue redemption (`club-venue-redemption`)

Platforms: MaihueGO, MaihueGO Partner, MaihueGO Link.

Code that fires it (for technical support):

* `backend/horizon-api/lib/notification/producers/club.producer.ts`

## Channels and rules

| Channel | Initial state | Quiet hours | Frequency cap | Delay | Fallback |
| - | - | - | - | - | - |
| Email | Active by default | Does not apply | Does not apply | No delay | No fallback |
| In-app | Inactive by default | Does not apply | Does not apply | No delay | No fallback |
| Push | Active by default | Does not apply | Does not apply | No delay | No fallback |

* **Quiet hours** run on the recipient's clock. A send that falls inside them waits until they end. Email and in-app never wait.
* **Validity** (TTL) drops a deferred send that waited longer than it.
* The **frequency cap** counts sends per account and channel in its window; the sends above it are skipped.
* A **fallback** channel only sends when the channel it backs up is skipped, suppressed or fails.
* These are the values declared in the code. An administrator can change them in the catalog, which always shows the values in force.

## Template variables

Templates write these fields between double braces. A sensitive field is stored as `[redacted]` in the occurrence and is never shown in traceability.

| Variable | Type | Required | Sensitive |
| - | - | - | - |
| `{{discount_amount}}` | number, can be empty (null) | No | — |
| `{{merchant}}` | text | Yes | — |
| `{{path}}` | text | Yes | — |
| `{{title}}` | text | Yes | — |
| `{{url}}` | text | Yes | — |
| `{{wallet}}` | identifier (UUID) | Yes | — |
| `{{expires_at}}` | text, can be empty (null) | No | — |
| `{{icon_url}}` | text | No | — |
| `{{savings_sentence}}` | object | No | — |
| `{{savings_sentence.en}}` | text | No | — |
| `{{savings_sentence.es}}` | text | No | — |
| `{{savings_sentence.fr}}` | text | No | — |
| `{{savings_sentence.it}}` | text | No | — |
| `{{savings_sentence.pt}}` | text | No | — |

## Example payload

Data a producer sends, built from the schema with fictitious values. Optional fields are included so every variable shows.

```json theme={null}
{
  "discount_amount": 1,
  "merchant": "<merchant>",
  "path": "/example",
  "title": "<title>",
  "url": "https://example.com/url",
  "wallet": "00000000-0000-4000-8000-000000000000",
  "expires_at": "2026-01-15T10:30:00.000Z",
  "icon_url": "https://example.com/icon-url",
  "savings_sentence": {
    "en": "<en>",
    "es": "<es>",
    "fr": "<fr>",
    "it": "<it>",
    "pt": "<pt>"
  }
}
```

## How to configure it

1. Open **Notifications › Event catalog**, search for `club.coupon.redeemed` and open the event. Guide: [Event detail](https://docs.bbrands.io/enterprise/notifications/catalog/detail.md).
2. Turn each channel on or off from the event detail. A reason is required and stays in the history. Guide: [Event channels](https://docs.bbrands.io/enterprise/notifications/catalog/channels.md).
3. Tune quiet hours, frequency cap, delay and fallback with **Edit rules**. Guide: [Event rules](https://docs.bbrands.io/enterprise/notifications/catalog/rules.md).
4. Edit the text of each channel and language with **Edit template**. The variables above are the ones the editor accepts. Guide: [Template editor](https://docs.bbrands.io/enterprise/notifications/templates/editor.md) and [Template variables](https://docs.bbrands.io/enterprise/notifications/templates/variables.md).

[Back to the Club Maihue events](https://docs.bbrands.io/enterprise/notifications/events/club.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.