---
title: "coupons.watch.matched@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/coupons.watch.matched"
updated: null
---

# coupons.watch.matched@1 · OpenVibe.Services

HTML: [coupons.watch.matched@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/coupons.watch.matched)

# CouponsWatchMatchedPayload `coupons.watch.matched@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: coupons
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/coupons.watch.matched.v1.json`](/docs/contracts/coupons.watch.matched.json)

coupons.watch.matched v1 (OpenVibe.Coupons server/domain/watches.js notifyWatchers). A code for a merchant a person watches became publicly listed (created published, or approved from review), inside the same transaction. One event per (watcher, coupon): never for the person who submitted the code, never twice. Internal visibility, the envelope subject is the coupon; recipient is who OpenVibe.Network notifies. The payload carries no code text: the notification links the coupon page, where its restrictions and reports are.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `recipient` | string | yes | The watcher's user subject id: who is notified. | - `pattern ^usr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `merchant_id` | string | yes |  | - `pattern ^mer_[0-9A-HJKMNP-TV-Z]{26}$` |
| `merchant_name` | string | yes |  | - `minLength 1`<br>- `maxLength 200` |
| `merchant_url` | string | yes | The merchant's page on Coupons. | - `pattern ^https?://`<br>- `format uri`<br>- `maxLength 2048` |
| `coupon_id` | string | yes |  | - `pattern ^cpn_[0-9A-HJKMNP-TV-Z]{26}$` |
| `coupon_url` | string | yes | The coupon's page on Coupons. | - `pattern ^https?://`<br>- `format uri`<br>- `maxLength 2048` |
| `title` | string | yes | The code's title as listed (what it gives). | - `minLength 1`<br>- `maxLength 500` |
| `expires_at` | string \| null | yes | The stated expiry (ISO date or date-time), or null when unknown. | - `maxLength 40` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: new-code

~~~~
{
  "recipient": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "merchant_id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "merchant_name": "Example Outdoor Store",
  "merchant_url": "https://openvibe.coupons/m/example-outdoor-store",
  "coupon_id": "cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "coupon_url": "https://openvibe.coupons/c/cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "title": "15% off orders over $50",
  "expires_at": "2026-11-30"
}
~~~~

Valid: no-expiry

~~~~
{
  "recipient": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "merchant_id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "merchant_name": "Example Outdoor Store",
  "merchant_url": "https://openvibe.coupons/m/example-outdoor-store",
  "coupon_id": "cpn_01JAB2C3D4E5F6G7H8J9K0MNPV",
  "coupon_url": "https://openvibe.coupons/c/cpn_01JAB2C3D4E5F6G7H8J9K0MNPV",
  "title": "Free shipping",
  "expires_at": null
}
~~~~

Rejected: carries-code

~~~~
{
  "recipient": "usr_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "merchant_id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "merchant_name": "Example Outdoor Store",
  "merchant_url": "https://openvibe.coupons/m/example-outdoor-store",
  "coupon_id": "cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "coupon_url": "https://openvibe.coupons/c/cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "title": "15% off",
  "expires_at": null,
  "code": "SAVE15"
}
~~~~

Rejected: numeric-recipient

~~~~
{
  "recipient": "42",
  "merchant_id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "merchant_name": "Example Outdoor Store",
  "merchant_url": "https://openvibe.coupons/m/example-outdoor-store",
  "coupon_id": "cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "coupon_url": "https://openvibe.coupons/c/cpn_01JAB2C3D4E5F6G7H8J9K0MNPT",
  "title": "15% off",
  "expires_at": null
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('coupons.watch.matched@1', value);   // { valid, errors: [{ path, message }] }
~~~~
