---
title: "deals.offer.created@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/deals.offer.created"
updated: null
---

# deals.offer.created@1 · OpenVibe.Services

HTML: [deals.offer.created@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/deals.offer.created)

# DealsOfferCreatedPayload `deals.offer.created@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: deals
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/deals.offer.created.v1.json`](/docs/contracts/deals.offer.created.json)

deals.offer.created v1 (OpenVibe.Deals server/domain/indexing.js emitOffer, called from server/domain/offers.js submit and createImported). A deal was posted: a person submitted a link (submit), or the Sources importer created an offer from a deals-category Sources item (createImported, the only caller that adds imported\_from). Written in the transaction that inserted the offer and its first observation, next to deals.index\_document.upserted. The payload describes the canonical offer as it now stands: canonical page URL, status, store domain, product, the latest observation (price text exactly as stated, never inferred; null where the source or person stated nothing) with its observed\_at, the freshness verdict and the Search-shaped indexability decision. Deliberately left out: the description, the submitter's identity, vote counts and hotness. Envelope: subject { type: offer, id: <offer\_id> }, visibility public when the offer is active and the SEO gate lets it be listed, otherwise internal, priority important (default), actor user:<submitter usr\_…> for a submission, service:deals for an import. No consumer is built yet.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `offer_id` | string | yes | The canonical (root) offer id. | - `pattern ^dof_[0-9A-HJKMNP-TV-Z]{26}$` |
| `slug` | string | yes | Page slug: the slugified title plus the last six characters of the id. | - `pattern ^[a-z0-9]+(-[a-z0-9]+)*$`<br>- `maxLength 80` |
| `url` | string | yes | Canonical offer page URL on Deals (/d/<slug>). | - `pattern ^https?://`<br>- `format uri`<br>- `maxLength 2048` |
| `title` | string | yes |  | - `minLength 1`<br>- `maxLength 200` |
| `status` | const | yes | A new offer is always active. | - `= "active"` |
| `store` | string \| null | yes | Store domain: the offer link's host without a leading www.; null when none could be derived. | - `minLength 1` |
| `product_id` | string \| null | yes | Deals product the offer is attached to, if any. | - `pattern ^dpr_[0-9A-HJKMNP-TV-Z]{26}$` |
| `latest_observation` | object \| null | yes | The newest observation across the offer's merge group; null only when the group has none. |  |
| `freshness` | enum | yes | fresh while the latest observation is younger than DEALS\_FRESHNESS\_HOURS, stale after, unobserved without one. | - `one of "fresh", "stale", "unobserved"` |
| `indexability` | object | yes | The SEO gate decision in Search's shape (index-hooks searchIndexability). | - `no other fields` |
| `indexability.decision` | enum | yes |  | - `one of "index", "noindex"` |
| `indexability.reasons` | array of string | yes | Search reason names, e.g. stale\_price, expired, takedown, owner\_decision (imported or AI text awaiting review). | - `maxItems 20`<br>- `unique items`<br>- `items: pattern ^[a-z][a-z0-9_]{1,63}$` |
| `imported_from` | object |  | Only on imports: the OpenVibe.Sources item the offer was created from. | - `no other fields` |
| `imported_from.service` | const | yes |  | - `= "sources"` |
| `imported_from.type` | const | yes |  | - `= "item"` |
| `imported_from.id` | string | yes |  | - `pattern ^itm_[0-9A-HJKMNP-TV-Z]{26}$` |

## Examples

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

 Valid: import-no-price

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPR",
  "slug": "garden-hose-reel-weekend-sale-k0mnpr",
  "url": "https://openvibe.deals/d/garden-hose-reel-weekend-sale-k0mnpr",
  "title": "Garden hose reel weekend sale",
  "status": "active",
  "store": "garden.example",
  "product_id": "dpr_01JAB2C3D4E5F6G7H8J9K0MNPS",
  "latest_observation": {
    "price": null,
    "currency": null,
    "availability": null,
    "observed_at": "2026-09-23T06:00:00.000Z"
  },
  "freshness": "fresh",
  "indexability": {
    "decision": "noindex",
    "reasons": [
      "owner_decision"
    ]
  },
  "imported_from": {
    "service": "sources",
    "type": "item",
    "id": "itm_01JAB2C3D4E5F6G7H8J9K0MNPW"
  }
}
~~~~

Valid: submission

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "usb-c-charger-65w-k0mnpq",
  "url": "https://openvibe.deals/d/usb-c-charger-65w-k0mnpq",
  "title": "USB-C charger 65W",
  "status": "active",
  "store": "shop.example",
  "product_id": null,
  "latest_observation": {
    "price": "29.99",
    "currency": "USD",
    "availability": "in_stock",
    "observed_at": "2026-09-23T10:15:00.000Z"
  },
  "freshness": "fresh",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
~~~~

Rejected: expired-at-creation

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "usb-c-charger-65w-k0mnpq",
  "url": "https://openvibe.deals/d/usb-c-charger-65w-k0mnpq",
  "title": "USB-C charger 65W",
  "status": "expired",
  "store": "shop.example",
  "product_id": null,
  "latest_observation": {
    "price": "29.99",
    "currency": "USD",
    "availability": "in_stock",
    "observed_at": "2026-09-23T10:15:00.000Z"
  },
  "freshness": "fresh",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
~~~~

Rejected: missing-indexability

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "usb-c-charger-65w-k0mnpq",
  "url": "https://openvibe.deals/d/usb-c-charger-65w-k0mnpq",
  "title": "USB-C charger 65W",
  "status": "active",
  "store": "shop.example",
  "product_id": null,
  "latest_observation": {
    "price": "29.99",
    "currency": "USD",
    "availability": "in_stock",
    "observed_at": "2026-09-23T10:15:00.000Z"
  },
  "freshness": "fresh"
}
~~~~

Rejected: numeric-price

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "usb-c-charger-65w-k0mnpq",
  "url": "https://openvibe.deals/d/usb-c-charger-65w-k0mnpq",
  "title": "USB-C charger 65W",
  "status": "active",
  "store": "shop.example",
  "product_id": null,
  "latest_observation": {
    "price": 29.99,
    "currency": "USD",
    "availability": "in_stock",
    "observed_at": "2026-09-23T10:15:00.000Z"
  },
  "freshness": "fresh",
  "indexability": {
    "decision": "index",
    "reasons": []
  }
}
~~~~

Rejected: submitter-identity

~~~~
{
  "offer_id": "dof_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "slug": "usb-c-charger-65w-k0mnpq",
  "url": "https://openvibe.deals/d/usb-c-charger-65w-k0mnpq",
  "title": "USB-C charger 65W",
  "status": "active",
  "store": "shop.example",
  "product_id": null,
  "latest_observation": {
    "price": "29.99",
    "currency": "USD",
    "availability": "in_stock",
    "observed_at": "2026-09-23T10:15:00.000Z"
  },
  "freshness": "fresh",
  "indexability": {
    "decision": "index",
    "reasons": []
  },
  "submitted_by": "usr_01JAB2C3D4E5F6G7H8J9K0MNPX"
}
~~~~

## Validate

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