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

# coupons.resolve-result@1 · OpenVibe.Services

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

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

coupons.resolve-result@1: the answer of GET /api/v1/merchants/resolve?host= on OpenVibe.Coupons (coupons.merchant.resolve; public, anonymous allowed, rate-limited, CORS for the configured extension origins): the merchant whose domain rule matches the host. No match is 404 merchant.not\_found with the normalised host and its registrable domain; a missing host is 400 host.required.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `host` | string | yes |  |  |
| `registrable_domain` | string | yes |  |  |
| `matched_rule` | object | yes |  |  |
| `matched_rule.host` | string | yes |  |  |
| `matched_rule.include_subdomains` | boolean | yes |  |  |
| `matched_rule.path_prefix` | string \| null | yes |  |  |
| `merchant` | [coupons.merchant](/docs/contracts/coupons.merchant) | yes |  |  |

## Examples

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

 Valid: match

~~~~
{
  "host": "www.shoes.example.com",
  "registrable_domain": "example.com",
  "matched_rule": {
    "host": "shoes.example.com",
    "include_subdomains": true,
    "path_prefix": null
  },
  "merchant": {
    "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: no-merchant

~~~~
{
  "host": "x.example.com",
  "registrable_domain": "example.com"
}
~~~~

## Validate

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