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

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

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

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

coupons.submit-result@1: the answer of POST /api/v1/coupons/submit on OpenVibe.Coupons: { coupon, merchant, duplicate, review\_state } — 201 for a new code, 200 when the same code was already known (duplicate).

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `coupon` | [coupons.coupon](/docs/contracts/coupons.coupon) | yes |  |  |
| `merchant` | object | yes |  |  |
| `merchant.id` | string | yes |  |  |
| `merchant.slug` | string | yes |  |  |
| `merchant.name` | string | yes |  |  |
| `merchant.status` | enum | yes |  | - `one of "pending", "active", "disabled"` |
| `duplicate` | boolean | yes |  |  |
| `review_state` | string | yes |  |  |

## Examples

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

 Valid: new

~~~~
{
  "coupon": {
    "id": "cpn_01JAB2C3D4E5F6G7H8J9K0MNPR",
    "merchant_id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "code": "FALL15",
    "title": "15% off sneakers",
    "description": null,
    "status": "reported_working",
    "active": true,
    "confidence": 0.82,
    "reports": {
      "worked": 9,
      "failed": 1,
      "window_days": 30,
      "last_report_at": "2026-09-25T17:00:00.000Z",
      "last_worked_at": "2026-09-25T17:00:00.000Z",
      "last_failed_at": "2026-09-20T09:00:00.000Z"
    },
    "expiry": {
      "known": true,
      "expires_at": "2026-10-31T23:59:59.999Z",
      "precision": "date",
      "basis": "evidence"
    },
    "restrictions": [
      {
        "kind": "min_spend",
        "amount": "$50.00",
        "amount_minor": 5000,
        "currency": "USD"
      },
      {
        "kind": "new_customers_only"
      }
    ],
    "hints": [],
    "evidence": [
      {
        "kind": "page",
        "url": "https://shoes.example.com/fall-sale",
        "merchant_page": true
      }
    ],
    "origin": "member",
    "created_at": "2026-09-20T09:00:00.000Z",
    "updated_at": "2026-09-25T17:03:00.000Z",
    "expired_at": null,
    "url": "https://openvibe.coupons/c/cpn_01JAB2C3D4E5F6G7H8J9K0MNPR"
  },
  "merchant": {
    "id": "mer_01JAB2C3D4E5F6G7H8J9K0MNPQ",
    "slug": "example-shoes",
    "name": "Example Shoes",
    "status": "active"
  },
  "duplicate": false,
  "review_state": "published"
}
~~~~

Rejected: partial

~~~~
{
  "duplicate": false
}
~~~~

## Validate

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