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

# coupons.merchant@1 · OpenVibe.Services

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

# CouponsMerchant `coupons.merchant@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/coupons/merchant.v1.json`](/docs/contracts/coupons.merchant.json)

coupons.merchant@1: one merchant as OpenVibe.Coupons' lookup API shows it (server/http/api.js merchantView): the same bytes for every caller, nothing about any person. Staff and service answers of the merchant routes add its status.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | string | yes |  |  |
| `slug` | string | yes |  |  |
| `name` | string | yes |  |  |
| `homepage_url` | string \| null |  |  |  |
| `url` | string | yes |  |  |
| `domains` | array of object | yes |  |  |
| `domains[].host` | string | yes |  |  |
| `domains[].include_subdomains` | boolean | yes |  |  |
| `domains[].path_prefix` | string \| null | yes |  |  |
| `active_codes` | integer | yes |  | - `minimum 0` |
| `hints` | array of string | yes |  |  |
| `status` | enum |  |  | - `one of "pending", "active", "disabled"` |

## Examples

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

 Valid: shop

~~~~
{
  "id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "example-shoes",
  "name": "Example Shoes",
  "homepage_url": "https://shoes.example.com/",
  "url": "https://openvibe.coupons/m/example-shoes",
  "domains": [
    {
      "host": "shoes.example.com",
      "include_subdomains": true,
      "path_prefix": null
    }
  ],
  "active_codes": 2,
  "hints": [
    "Enter the code in the Promo field at checkout."
  ]
}
~~~~

Rejected: negative-count

~~~~
{
  "id": "m",
  "slug": "s",
  "name": "n",
  "url": "u",
  "domains": [],
  "active_codes": -1,
  "hints": []
}
~~~~

## Validate

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