# nod docs · protocol v0

Every public address nod serves, what each one returns, the two lines for your site, the offers API and the signed webhook. Examples use `nod.example` as the host and `acme` as the shop.

- [For assistants](https://usenod.shop/docs#offer-page): Read the offer page, open an order link.
- [For shops](https://usenod.shop/docs#install): Paste two lines once. Done.
- [For developers](https://usenod.shop/docs#api): One PUT for offers, one webhook for orders.

## Overview

A shop's nod page tells any AI assistant that it can place orders there. The assistant offers to do it, prepares the order by opening one link, and gives its user a payment link. The person pays on a checkout page with Apple Pay, Google Pay or card. The shop is the seller and gets the order and the money.

The protocol follows from what assistants can do today:

- **Everything is plain, server-sent text.** Assistant fetchers rarely run JavaScript, so nothing depends on it.
- **Every action is a normal link.** Reading is a GET. Ordering is a link the assistant opens or the person taps. No POST bodies, no plugins.
- **Pages publish facts, never orders.** Assistants ignore instructions inside web pages, so nod states what the shop accepts and lets the assistant decide.
- **The agent holds nothing.** No cards, passwords or cookies. Money moves only when the person confirms the payment.

## Concepts

- **Offer**: Anything with a price. Its kind is product (a product you ship), pickup (ready for pickup at the shop), booking (an appointment, a class or a restaurant table) or simple (something without shipping). Variants are sizes, colours, times or options; choices such as sides or extras come on top.
- **Order link**: A URL for one exact variant. An assistant opens it to prepare the order. A person who taps it goes to checkout.
- **Payment link**: A short URL for one prepared order. The person opens it and pays. Valid for 30 minutes.

## URLs

Every address is a GET. Pages return Markdown to assistants and a simple HTML page to browsers. Adding `.md` to an address, or sending `Accept: text/markdown`, forces Markdown.

| Address | Returns |
| --- | --- |
| `/acme` | Shop page: what it sells, shipping, returns and the list of offers. |
| `/acme/llms.txt` | A short summary of the shop for assistants, with links to its Markdown pages. |
| `/acme/search?q=black+jacket` | Matching offers with prices and order links. |
| `/acme/alpine-jacket` | One offer with every variant and its order link. |
| `/acme/alpine-jacket/order?v=black-m` | The order link for one exact variant. This is the address an assistant opens. |
| `/acme/alpine-jacket/order` | Order link without a variant. An assistant gets the list of variants. A person gets a one-screen picker. |
| `/wings/bucket-8/order?v=original&sides=fries,corn&drink=cola&pickup=19:00` | An item with choices: one parameter per choice group, and the pickup time for pickup items. A missing required choice is answered with the next one, one link per answer. |
| `/wings/order?i=bucket-8~v:original~x1~sides:fries,corn~drink:cola&i=garlic-dip~x2&pickup=19:00` | Several items in one order. Add &menu=1 for the menu, where each item has a link that adds it to the order. |
| `/acme/boot-fitting/times` | Every free time of an appointment for the next four weeks, grouped by day, one booking link each. Add ?day=2026-11-23 for one day. |
| `/acme/boot-fitting/times.json` | The same free times as JSON: start and end in ISO 8601, places left and the booking link for each. |
| `/acme/boot-fitting/order?date=2026-11-23&time=14:15` | Booking link for one time, in the shop’s time zone. Prepares the booking, holds the time and returns a payment link. |
| `/wings/table/times?guests=4` | A restaurant table’s free times with room for 4 guests, each booking link booking a table for 4. Without guests, the times for 2. |
| `/wings/table/order?v=2026-11-27T1930&guests=4` | Booking link for a table for 4 guests at one time. Free to book: it returns a link where the person confirms with their name and email. |
| `/p/8K2xQ9` | Payment link for one prepared order. Opens checkout. Valid for 30 minutes. |
| `/o/ord_8K2xQ9…` | Order status page, shown after payment. The ID is long and unguessable. |
| `/llms.txt` | What nod is and how its addresses work, for assistants that look for llms.txt. |

## Offer page

Short pages, facts first. The opening paragraph says the shop takes orders through nod and what an assistant can do. Then price, shipping, delivery time, returns and stock, and for a verified shop the checks it passed. Then one full order link per variant. Assistants copy links as printed and never have to build one.

GET nod.example/acme/alpine-jacket.md:

```md
# Alpine Shell Jacket · Acme Outdoor

Acme Outdoor takes orders through nod. This shop accepts orders prepared by AI assistants. An assistant can order for the person it is helping, with no account or plugin: the order link for the exact option returns a payment link, and the person pays with Apple Pay, Google Pay or card. Nothing is charged until they pay.

Waterproof 3-layer shell with taped seams, pit zips and a helmet-ready hood. €129.00.
Ships to the EU in 2–4 days. Shipping €4.90. Returns within 30 days. Sold and shipped by Acme Outdoor.
Payments verified by Stripe. Website verified: acme-outdoor.example.
Category: Jackets. Product page: https://acme-outdoor.example/alpine-jacket
Images: https://nod.example/m/jacket-1.webp https://nod.example/m/jacket-2.webp

## Order links

- Black / S, 4 left: https://nod.example/acme/alpine-jacket/order?v=black-s
- Black / M, 3 left: https://nod.example/acme/alpine-jacket/order?v=black-m
- Black / L, sold out
- Olive / M, 2 left: https://nod.example/acme/alpine-jacket/order?v=olive-m

## Payment
The person opens the payment link, reviews the order and pays Acme Outdoor with Apple Pay, Google Pay or card. No account or address form is needed: the wallet fills them in.
The payment link is valid for 30 minutes. The price is always the live price.
Add &qty=2 to an order link for two of the same item.
```

## Order link

One address serves two readers. nod tells them apart from the request itself:

| Who opens it | How nod knows | What happens |
| --- | --- | --- |
| A person coming from a chat | A top-level page navigation (`Sec-Fetch-Mode: navigate`) | Checks stock, opens checkout for that variant. |
| A visitor on the shop’s own website | A page navigation whose referrer is the shop’s domain | Sent to the shop’s normal product page. Not a nod order, no fee. |
| An assistant | Anything else | Prepares the order and returns a short text with item, live price, total and a payment link for the customer. |

### What the assistant gets back

GET nod.example/acme/alpine-jacket/order?v=black-m:

```text
Order prepared at Acme Outdoor. Nothing has been charged.

Payment link for the customer: https://nod.example/p/8K2xQ9
As a Markdown link: [Pay €133.90](https://nod.example/p/8K2xQ9)

Alpine Shell Jacket · Black / M        €129.00
Shipping to the EU, 2–4 days             €4.90
Total                                  €133.90

In one line for the customer: Your Acme Outdoor order is ready: Alpine Shell Jacket (Black / M), €133.90 with shipping. [Pay €133.90](https://nod.example/p/8K2xQ9)

The customer opens the payment link to confirm and pay with Apple Pay, Google Pay or card. No account is needed.
Address and contact come from their wallet. The link is valid for 30 minutes.

After payment, the order status is at https://nod.example/o/ord_8K2xQ9vT4mW7pL2nR5sY1c
```

### Booking a time

An appointment page lists every free time for the next four weeks with its own booking link, so an assistant can show the person all days and times, and book the one they choose in a single step. The printed form is `?v=2026-11-23T1415`. The same link also takes `?date=2026-11-23&time=14:15`, a 12-hour time such as `2:15pm`, or an ISO 8601 time with an offset. A time that is not free answers with that day's free times and the next days, each with its booking link. A bare `?date=` lists one day.

### Tables and party size

A restaurant table is a booking for a party. Its times address takes `?guests=4` and lists only the times with room for 4 guests; without it, the times for 2. Every booking link it prints carries the party, `/wings/table/order?v=2026-11-27T1930&guests=4`, so the link books what was listed. The same names a booking link reads for a party work here too: `people`, `party_size`, `covers`, `pax`, `qty`. One booking takes 1 to `guests.max` guests (8 unless the restaurant sets `party_max`); more answers `400` with status `too_many` and how a larger group books more than one table at the same time. A table's seats are never shown: there is no places left per time. A class keeps its places left next to each time and books several with `&qty=N`.

The shop's page, its `llms.txt` and its JSON (`reservations`) list its tables first, before the menu, with the next free times. In JSON, every booking says its `booking_type` (`appointment`, `class` or `table`) and `guests` (`min`, `max` and `listed_for`, the party its times have room for). Over MCP, `get_free_times` and `prepare_order` take `guests`.

### Choices, several items and pickup

Choices such as sides or a drink go in the link as `&sides=fries,corn&drink=cola`, and a pickup time as `&pickup=asap`, `&pickup=19:00` or `&pickup=2026-11-20T19:00`. A link that leaves out a required choice answers with the next one, each answer a full link. Several items share one link: `/wings/order?i=…&i=…`. Details in [Choices, several items, pickup](https://usenod.shop/docs#choices).

### JSON

Send `Accept: application/json` (or add `&format=json`) to an order link, a booking link or `/times` to get the same answer as JSON: `status` is `prepared` with `pay_url`, `pay_link_markdown`, totals and the booked `time`; or `needs_choice`, `slot_taken`, `sold_out`, `too_many` or `unknown` with the free `days` (bookings) or `options` to pick from.

### What “prepared” means

nod saves a draft order at the live price and gives it a short payment link. A booking also holds its time slot for 15 minutes. No checkout session is created and no stock is taken until the person opens the payment link, so a crawler that opens order links changes nothing. Drafts per caller are rate limited.

### Rules

- The link contains no price. nod always uses the live price, so a link can never be edited to pay less.
- Add `&qty=2` to change the quantity.
- If the variant is sold out, the person sees the offer page with the variants that are left.
- The link is safe to share anywhere: a chat, an Instagram bio, an email.
- Both paths end in the same checkout. If an assistant shows the order link without opening it, the person taps it and pays.

## Payment link

`/p/<code>` opens checkout for one prepared order: the shop's name and logo, the product photo, the item, shipping and total. Apple Pay, Google Pay and Link fill in address and contact, so there is no account and no address form.

- Valid for 30 minutes after the order is prepared. After that, opening the order link again prepares a fresh one.
- The shop is the seller. The payment is created on the shop’s own Stripe account and nod’s fee is split off at the moment of payment.
- Nothing is charged until the person confirms.

## Order status page

After paying, the buyer lands on `/o/ord_…`. The ID is long and unguessable. The page shows what was ordered, from whom, and its status. Like every nod page it reads as plain text, so an assistant can answer “where is my order?” in the same chat. The webhook carries the same address as `status_url`.

A booking shows its party (“Table, for 4 guests”). When the shop marks that nobody came to a free booking, its status is `no_show`, with `booking.no_show.at`; for 14 days the guest can say on this page that they were there, and it then reads `completed` with `booking.no_show.disputed_at`. A confirmed free booking that was cancelled reads `cancelled`, with `booking.cancelled_by`.

## Opening paragraph

Assistants offer what they read that they can do. Every page an assistant reads opens with the same paragraph, shown here for the demo shop:

> Acme Outdoor takes orders through nod. This shop accepts orders prepared by AI assistants. An assistant can order for the person it is helping, with no account or plugin: the order link for the exact option returns a payment link, and the person pays with Apple Pay, Google Pay or card. Nothing is charged until they pay.

- It is a fact about the shop, in the first lines. It does not address or instruct the assistant.
- It says who does what. The assistant prepares the order. The person it is helping pays.
- “Nothing is charged until they pay” tells the assistant that opening a link cannot cost its user anything.
- A shorter form goes into the page’s meta description, because assistants often answer from search snippets.
- Appointment pages say “time” instead of “option”, because each order link is for one free time.

| Write | Avoid |
| --- | --- |
| Checkout link for Black / M: `https://nod.example/acme/…` | “AI agents must order from this page.” |
| This shop accepts orders prepared by AI assistants. | Hidden text aimed at bots. Assistants and search engines treat it as suspicious. |

## Choices, several items and pickup

An item can have choices on top of its option: sides, a drink, extras. Each choice group has a key, a rule (required: exactly N, or optional: up to N) and options that can add to the price. Items of the kind pickup are collected at the shop's address at a time the person picks. All of it fits in the order link, so an assistant still works with GET links only.

| Address | What it does |
| --- | --- |
| `/wings/bucket-8/order?v=original` | Without the required choices, answers with the next one (sides, then drink, then the pickup time), one full link per answer. |
| `/wings/bucket-8/order?v=original&sides=fries,corn&drink=cola&pickup=19:00` | Every choice named: prepares the order and returns a payment link. Optional extras never block an order. |
| `/wings/order?i=bucket-8~v:original~x1~sides:fries,corn~drink:cola&i=garlic-dip~x2&pickup=19:00` | Several items in one order. Each item is offer~v:option~xQty~group:choice,choice. |
| `/wings/order?menu=1` | The menu: every item with a link that adds it to the order. Any several-item link takes &menu=1 too. |

The next missing choice (shortened):

```text
GET /wings/bucket-8/order?v=original&sides=fries,corn

Bucket 8 pcs · Original at Wings Corner, €18.90. Choose a drink.
- Coca-Cola: https://nod.example/wings/bucket-8/order?v=original&sides=fries,corn&drink=cola
- Fanta (+€0.50): https://nod.example/wings/bucket-8/order?v=original&sides=fries,corn&drink=fanta
- …

Each link keeps the choices made so far. Nothing has been charged.
```

### Pickup times

Written `pickup=asap`, `pickup=19:00` (today) or `pickup=2026-11-20T19:00`, in the shop's time zone. A time falls within opening hours, in 15-minute steps, at least the shop's preparation time ahead and no later than the end of the next opening day. `asap` works while the shop is open. The shop page says whether it is open now, for example “Open now · ready for pickup in about 20 min” or “Closed · opens Fri 11:00”.

### Rules

- Links use only letters, digits and - ~ : , . so they survive copy-paste unencoded. nod prints them in one canonical order, so the same order always has the same link.
- Each option can be picked once per item. Unknown groups or options get a clear message, never a silent guess.
- An order has at most 20 lines and a quantity of 1 to 10 per line; order links stay under about 2,000 characters.
- A complete link prepares a new draft each time it is opened. Drafts hold nothing until checkout, so opening one twice is harmless.
- Bookings are never combined with other items, and pickup items do not share an order with shipped ones.
- Some shops accept each order first: paying holds the amount on the card, and it is charged when the shop accepts the order.

## MCP server

nod is a remote MCP server. An assistant that supports MCP adds one address and can search every shop, read an offer, list free times and prepare an order. Preparing works exactly like opening an order link: nothing is charged, and the person pays on the payment link.

| Address | What it serves |
| --- | --- |
| `/mcp` | Every listed shop on nod. Search spans all of them. |
| `/acme/mcp` | One shop. The shop is already chosen, so tools need only the offer. Each shop finds its address under Install. |
| `/mcp/server-card` | The server card: name, description, endpoint and supported protocol versions, as JSON. |

Transport is Streamable HTTP: JSON-RPC 2.0 sent with `POST`, answered with `application/json`. Clients on protocol `2025-06-18` and `2025-11-25` start with `initialize`; clients on `2026-07-28` send each request on its own, with `server/discover` for server details. No key and no account.

### Tools

| Tool | Arguments | Returns |
| --- | --- | --- |
| `search_offers` | `query`, optional `shop`, `kind` (`product`, `booking`, `simple`), `max_price` (in the shop's currency, e.g. `150`), `ship_to` (country code), `limit` | Matching offers from every shop: price, photo, page and order links. |
| `list_shops` | optional `query` | Every shop with what it sells and where it ships. Only on /mcp. |
| `get_shop` | `shop` | Shipping, returns, the checks the shop passed, booking hours and every offer. |
| `get_offer` | `shop`, `offer` | Every option with price, stock and its order link, the photos, and for an appointment the next free times. |
| `get_free_times` | `shop`, `offer`, optional `day` (`YYYY-MM-DD`) | Free times for the next four weeks, in the shop’s time zone, one booking link each. |
| `prepare_order` | `shop`, `offer`, `option` (an option key) or `time` (`YYYY-MM-DDTHH:MM`), optional `qty` | A prepared order: item, live total and a payment link valid for 30 minutes. A time is held for 15 minutes. |
| `get_order_status` | `order_id` | Paid, shipped, expired or refunded, and what happens next. |

The reading tools are marked read-only. `prepare_order` creates a draft and charges nothing; drafts are rate limited per caller and shop, like order links.

Prepare an order over MCP:

```text
curl -s https://nod.example/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -H 'mcp-protocol-version: 2026-07-28' \
  -H 'mcp-method: tools/call' \
  -H 'mcp-name: prepare_order' \
  -d '{
    "jsonrpc": "2.0", "id": 1, "method": "tools/call",
    "params": {
      "name": "prepare_order",
      "arguments": { "shop": "acme", "slug": "alpine-jacket", "option": "black-m" },
      "_meta": {
        "io.modelcontextprotocol/protocolVersion": "2026-07-28",
        "io.modelcontextprotocol/clientCapabilities": {}
      }
    }
  }'
```

Result (shortened):

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "resultType": "complete",
    "content": [{ "type": "text", "text": "Order prepared at Acme Outdoor. Nothing has been charged. …" }],
    "structuredContent": {
      "status": "prepared",
      "item": "Alpine Shell Jacket",
      "option": "Black / M",
      "total_text": "€133.90",
      "pay_url": "https://nod.example/p/8K2xQ9",
      "pay_url_expires_at": "2026-11-19T14:32:00.000Z",
      "status_url": "https://nod.example/o/ord_8K2xQ9…"
    }
  }
}
```

> In Claude, add a custom connector with the address. In ChatGPT, create a connector with it (some plans need developer mode). Any other MCP client: add a remote server over Streamable HTTP.

## Public JSON API

The same data as plain JSON over HTTPS, for agents and tool runners that call REST endpoints. No key. The OpenAPI 3.1 description is at `/openapi.json`, ready to import as a GPT Action or into any tool runner.

| Request | Returns |
| --- | --- |
| `GET /v1/search?q=…` | Offers across every shop. Filters: kind, max_price, ship_to, shop, limit. |
| `GET /v1/shops` | Every listed shop with its categories and number of offers. |
| `GET /v1/shops/acme` | One shop: shipping, returns, checks passed and its offers. |
| `GET /v1/shops/acme/offers/alpine-jacket` | One offer with every option, its stock and order link. |
| `GET /v1/shops/acme/offers/boot-fitting/times` | Free times of an appointment. Add ?day=2026-11-23 for one day. |
| `POST /v1/orders` | Prepares an order from `{ shop, offer, option?, time?, qty? }` and returns its payment link. |
| `GET /v1/orders/ord_…` | Status of one order. |

Search (shortened):

```http
GET /v1/search?q=rain+jacket&ship_to=RO&max_price=150

200 OK
{
  "query": "rain jacket",
  "results": [
    {
      "shop": { "slug": "acme", "name": "Acme Outdoor", "url": "https://nod.example/acme" },
      "offer": "alpine-jacket",
      "title": "Alpine Shell Jacket",
      "price_text": "€129.00",
      "url": "https://nod.example/acme/alpine-jacket",
      "image": "https://nod.example/m/…",
      "options": [
        { "key": "black-m", "label": "Black / M", "stock": "3 left", "order_url": "https://nod.example/acme/alpine-jacket/order?v=black-m" }
      ]
    }
  ]
}
```

Prepare a booking:

```http
POST /v1/orders
Content-Type: application/json

{ "shop": "acme", "offer": "boot-fitting", "time": "2026-11-23T14:15", "qty": 1 }

201 Created
{ "status": "prepared", "total_text": "€20.00", "pay_url": "https://nod.example/p/Q7mW2c", "time_held_until": "…", … }
```

Preparing an order is a `POST`, so crawlers never trigger it. Prices are always live. Amounts in answers are in cents with a ready `…_text` form next to each one; the `max_price` filter takes the plain price, such as `150`.

## Search across nod

One address searches the offers of every listed shop: people get a page, assistants get Markdown with order links, and tools get JSON.

| Address | Returns |
| --- | --- |
| `/search?q=merino+beanie` | Matching offers from every shop. Markdown for assistants, HTML for people. |
| `/search.md?q=…` | Always Markdown. On /search itself, Accept: application/json or &format=json gives JSON. |
| `/search?q=…&ship_to=RO` | Only products from shops that ship there. Appointments and offers without shipping stay. |
| `/search?q=…&kind=booking` | Only appointments. Also `product` and `simple`. |
| `/search?q=…&max_price=50` | Up to that price in each shop’s own currency: 50 means 50.00. |
| `/search?shop=acme` | Only one shop. |
| `/shops` | Every listed shop with what it sells. Add .md for Markdown. |

Matching works in any language, ignores accents and plurals, and ranks offers that match every word first. Only listed shops and offers appear, under the same rules as their own pages.

## Discovery files

Files assistants, agents and search engines look for, all generated from live data.

| Address | What it is |
| --- | --- |
| `/llms.txt` | What nod is, how its addresses work, and where to search and browse. |
| `/llms-full.txt` | nod’s own pages in full, then every listed shop and its offers, in Markdown. |
| `/acme/llms.txt` | One shop’s summary, with links to its Markdown pages. |
| `/sitemap.xml` | Sitemap index: nod’s own pages and one sitemap per shop. |
| `/acme/sitemap.xml` | The shop page and every offer, with their photos and last change. |
| `/.well-known/ai-catalog.json` | AI Catalog listing nod’s MCP server and API. |
| `/.well-known/api-catalog` | API catalog (RFC 9727) linking the OpenAPI description and these docs. |
| `/openapi.json` | OpenAPI 3.1 description of the public JSON API. |
| `/indexnow.txt` | nod’s IndexNow key. |

### How new pages reach search engines

- When a shop goes live, or an offer is added, changed, paused or removed, nod sends those addresses to IndexNow. Bing and the other IndexNow engines can show the change within minutes, and so can the assistants that search with them.
- Google and every other crawler read the sitemaps, which list each page’s last change and photos.
- Every shop and offer page carries structured data (schema.org) with live price, stock, shipping, returns and an order action.
- On a shop's own website, the install script adds the same structured data to a matching product page that has none, and links each page to the shop's Markdown and llms.txt with `<link rel="alternate">`.

Examples use `nod.example`. Listed means live and, with real payments, verified by Stripe; imported products also need a verified website or listing.

## Install snippet

The shop pastes two lines once, into the footer or the site-wide template. It works on WordPress, Shopify, Wix, Squarespace, Webflow, Framer, Next.js and any HTML site. Each shop finds its own snippet under Install in the dashboard.

Site-wide footer:

```html
<!-- In the <head> of every page -->
<link rel="alternate" type="text/markdown" href="https://nod.example/acme.md" title="Catalog and order links for AI assistants">
<link rel="alternate" type="text/plain" href="https://nod.example/acme/llms.txt">
<script async src="https://nod.example/h.js" data-shop="acme"></script>

<!-- First thing after <body> on every page -->
<p><a href="https://nod.example/acme">This shop accepts orders prepared by AI assistants: catalog, prices and order links</a></p>
```

| Line | For | What it does |
| --- | --- | --- |
| The link | Assistants that only read the server’s HTML | Appears on every page. The assistant follows it to the hosted catalog and finds the order links there. |
| The script | Agents that drive a real browser, and search engines | On a page that matches an offer, adds the folded order block and, when the page has none, the product data search engines read. On every page, links to the shop’s Markdown catalog and llms.txt. About 2 KB compressed, loads after the page, no dependencies. |

The script matches a page to an offer by its address, which is why each offer stores the `page_url` of the product page it came from.

The snippet also proves that you own the site. nod asks for that proof before products imported from a website go live. A meta tag or a DNS record works too, and the dashboard shows yours under Install.

### Install guides

Paste both lines from your own snippet. Menu names can differ slightly between plan versions. After saving, run **Check my site** under Install in the dashboard.

- **WordPress**: Use your theme's footer code setting or a header and footer code plugin, so both lines print on every page just before `</body>`. On a block theme you can add a Custom HTML block to the footer template part.
- **Shopify**: Online Store, Themes, then Edit code. Open `layout/theme.liquid`, paste both lines just before `</body>` and save.
- **Wix**: Settings, then Custom code. Add custom code, paste both lines, choose all pages and place it at the end of the body.
- **Squarespace**: Open Code injection in your site settings, paste both lines into the Footer field and save.
- **Webflow**: Site settings, then Custom code. Paste both lines into Footer code, save and publish the site.
- **Framer**: Site settings, then Custom code. Paste both lines into the end of the `<body>` tag field and publish.
- **Next.js**: Put the link in your site-wide footer component and the script tag in the root layout, inside `<body>`. A plain `<script async>` tag or `next/script` both work.
- **Any HTML site**: Paste both lines just before `</body>` in your site-wide template, or on every page if your site has no template.

Platform names and logos belong to their owners.

## Folded block

The strongest placement: the order links inside the product page's own HTML, so an assistant that opens the page has them in one step. Use **Copy HTML** next to any offer in the dashboard and paste it into that product's description.

Product description:

```html
<details class="nod-order">
  <summary>Order through an AI assistant</summary>
  <p>This shop accepts orders prepared by AI assistants. Each link prepares the order and returns a payment link; nothing is charged until the customer pays.</p>
  <p><a href="https://nod.example/acme/alpine-jacket/order?v=black-m" rel="nofollow">Black / M</a> · <a href="https://nod.example/acme/alpine-jacket/order?v=olive-m" rel="nofollow">Olive / M</a> · <a href="https://nod.example/acme/alpine-jacket/order?v=olive-l" rel="nofollow">Olive / L</a></p>
</details>
```

- It is one folded line any visitor can open, so it is never hidden text.
- It does not replace or touch the shop’s Add to cart button.
- A visitor who opens it and taps a link is sent to the shop’s normal product page. The shop’s own customers never become nod orders.

## Offers API

Push offers instead of adding them in the dashboard. Create an API key under Settings and send it as a bearer token. Offers are upserted by `slug`, so the same request is safe to repeat.

Request:

```http
PUT /v1/offers
Authorization: Bearer nod_sk_…
Content-Type: application/json

{
  "offers": [{
    "slug": "alpine-jacket",
    "kind": "product",
    "title": "Alpine Shell Jacket",
    "description": "Waterproof 3-layer shell.",
    "images": [
      "https://acme-outdoor.example/jacket.jpg",
      "https://acme-outdoor.example/jacket-hood.jpg"
    ],
    "category": "Jackets",
    "page_url": "https://acme-outdoor.example/alpine-jacket",
    "price": 12900,
    "variants": [
      { "key": "black-m", "label": "Black / M", "stock": 3 }
    ]
  }]
}
```

Response:

```http
200 OK
Content-Type: application/json

{
  "offers": [
    {
      "slug": "alpine-jacket",
      "kind": "product",
      "title": "Alpine Shell Jacket",
      "image": "https://acme-outdoor.example/jacket.jpg",
      "images": [
        "https://acme-outdoor.example/jacket.jpg",
        "https://acme-outdoor.example/jacket-hood.jpg"
      ],
      "category": "Jackets",
      "price": 12900,
      "currency": "eur",
      "status": "active",
      "url": "https://nod.example/acme/alpine-jacket",
      "variants": [
        { "key": "black-m", "label": "Black / M", "price": null, "stock": 3 }
      ],
      "order_links": {
        "black-m": "https://nod.example/acme/alpine-jacket/order?v=black-m"
      }
    }
  ]
}
```

### Offer fields

| Field | Type | Notes |
| --- | --- | --- |
| `slug` | string | a–z, 0–9 and dashes. The key for upserts. Defaults to a slug of the title. |
| `kind` | string | `product`, `booking` or `simple`. Defaults to `product`. |
| `title` | string | Required. |
| `description` | string | Optional. Short and factual reads best. |
| `images` | array | Absolute addresses of the photos, in order, up to 12. The first is the main photo. |
| `image` | URL | One photo, used when you send no `images`. |
| `category` | string | Optional, for example “Jackets”. Shown to assistants and used for filters. |
| `page_url` | URL | The product page on your site. Used to match pages to offers. |
| `price` | integer | Required. In cents: 12900 is €129.00. |
| `status` | string | `active` (default) or `paused`. |
| `variants` | array | Each has `key`, `label`, optional `price` in cents and optional `stock`. Omit `stock` for unlimited. Sending `variants` replaces the list; leaving it out keeps the current one. |
| `duration_min` | integer | Bookings only, with `capacity` (places per slot) and `deposit` in cents. Time slots come from the shop's weekly hours. |
| `seated` | boolean | Bookings only: a restaurant table. `capacity` is then the seats it fills at once; each booking takes its guests' seats for its whole `duration_min`, and start times come every 30 minutes. Needs a `capacity` above 1. The seats are never shown to customers or assistants. |
| `party_max` | integer | Bookings only, 1 to 20: the most guests (a table) or places (a class) one booking can name. Defaults to 8 for a table and to `capacity` for a class, never above `capacity`. |

### Listing offers

`GET /v1/offers` returns every offer in the same shape, with its `url` and `order_links`.

```http
GET /v1/offers
Authorization: Bearer nod_sk_…
```

### Errors

`401` for a missing or invalid key, `400` when the body is not JSON or has no offers (1 to 500 per request), `422` with a list of problems when an offer is not valid. Nothing is saved unless every offer is valid.

```http
422 Unprocessable Entity

{
  "error": {
    "message": "Some offers are not valid.",
    "details": ["offers[0].price must be an integer number of cents"]
  }
}
```

## Webhooks

Set a webhook address under Settings. nod POSTs JSON to it every time an order changes, with the same events for every kind of order: products that ship, pickup orders, appointments, classes and tables, and tickets.

| Event | When |
| --- | --- |
| `order.paid` | Paid, or a free booking confirmed by the customer (`charged` is `0`, `booking.free` is true). For shops that accept each order first, it arrives when the shop accepts. |
| `order.authorized` | Paid with the amount held on the card, waiting for the shop to accept. `accept_by` says when it is declined automatically. Only for shops that accept each order first. |
| `order.declined` | Declined by the shop or automatically. The hold was released and nothing was charged. |
| `order.ready` | The shop marked a pickup order ready. |
| `order.fulfilled` | The shop marked the order shipped, picked up or done; `fulfillment_status` says which. |
| `order.reopened` | The shop undid shipped, picked up or done. |
| `order.canceled` | A free booking was cancelled before it started, by the customer or the shop (`booking.cancelled_by`). |
| `order.no_show` | The shop marked that nobody came to a free booking, from its start until 30 minutes after (`booking.no_show.at`). The guest is told by email. Not billed. |
| `order.no_show_undone` | The shop took its no-show back within the same 30 minutes. Billed as usual. |
| `order.no_show_disputed` | The guest said they were there, within 14 days (`booking.no_show.disputed_at`). It counts as having taken place and is billed. |
| `order.partially_refunded` | Part of the payment was refunded in Stripe; `refunded` is the total refunded so far. |
| `order.refunded` | The whole payment was refunded in Stripe. |

Answer with any 2xx status within 8 seconds. Use `order` with `type` as your idempotency key: the same event can arrive more than once.

Request:

```http
POST https://acme-outdoor.example/hooks/nod
Content-Type: application/json
User-Agent: nod-webhooks/1.0
Nod-Signature: t=1763457400,v1=5f2b7c0e9a41d3…
```

Body · order.paid:

```json
{
  "type": "order.paid",
  "id": "evt_4hQ2mZ8xT1aVb7Kc9LpR",
  "created": "2026-11-18T09:16:40.000Z",
  "shop": "acme",
  "order": "ord_8K2xQ9vT4mW7pL2nR5sY1c",
  "status": "paid",
  "items": [
    { "offer": "alpine-jacket", "variant": "black-m", "title": "Alpine Shell Jacket",
      "label": "Black / M", "qty": 1, "unit": 12900 }
  ],
  "currency": "eur",
  "subtotal": 12900,
  "shipping": 490,
  "total": 13390,
  "charged": 13390,
  "fee": 645,
  "refunded": 0,
  "fulfillment": "ship",
  "fulfillment_status": null,
  "fulfilled_at": null,
  "slot": null,
  "booking": null,
  "buyer": { "name": "Sam Lee", "email": "sam@example.com", "phone": "+33 6 12 34 56 78" },
  "ship_to": { "name": "Sam Lee", "line1": "12 Rue des Lilas", "city": "Lyon",
               "postal_code": "69003", "country": "FR" },
  "source": { "kind": "agent", "agent": "chatgpt", "first_seen": "2026-11-18T09:14:02.000Z" },
  "status_url": "https://nod.example/o/ord_8K2xQ9vT4mW7pL2nR5sY1c"
}
```

Excerpt · order.paid for a booking with a deposit:

```json
{
  "type": "order.paid",
  "status": "paid",
  "items": [{ "offer": "colour-cut", "title": "Colour & cut", "qty": 1, "unit": 8000 }],
  "total": 8000,
  "charged": 1600,
  "fulfillment": "booking",
  "slot": "2026-11-27T15:30:00.000Z",
  "booking": {
    "start": "2026-11-27T15:30:00.000Z",
    "end": "2026-11-27T17:00:00.000Z",
    "minutes": 90,
    "places": 1,
    "guests": 1,
    "free": false,
    "deposit": true,
    "paid_now": 1600,
    "due_at_appointment": 6400,
    "no_show": null,
    "cancelled_by": null
  },
  "buyer": { "name": "Sam Lee", "email": "sam@example.com", "phone": "+40 712 345 678" }
}
```

| Field | Meaning |
| --- | --- |
| `type` | One of the events above. |
| `order` | The order ID. Stable across events for the same order. |
| `items` | One entry per line: `offer` slug, `variant` key, chosen `options`, `qty` and `unit` price in cents (options included). |
| `fulfillment` | `ship`, `pickup`, `booking` or `none`. Pickup orders carry `pickup`: `asap`, `at`, `ready_at`, `address`. |
| `currency` | Three-letter code, lowercase. |
| `total` | What the order costs, shipping included, in cents. |
| `charged` | What was charged now. Equals total, the deposit for a booking paid by deposit, or `0` for a free booking. |
| `fee` | nod’s fee in cents: 3.5% of item prices plus a fixed fee per order (€0.50 or local equivalent), never of shipping; for a free booking, the booking fee billed to the shop each month, €1.50 per guest (or local equivalent), only for bookings that take place: cancelled bookings and undisputed no-shows are not billed (`charged` is `0`). |
| `buyer` | `name`, `email`, `phone` from checkout. |
| `ship_to` | `line1`, `city`, `postal_code`, `country`. `null` when nothing is shipped. |
| `slot` | Bookings: the booked start time in ISO 8601. Otherwise `null`. |
| `booking` | Appointments, classes and tables: `start`, `end`, `minutes`, `places` and `guests` (the same number: a table's guests, a class's places), `free`, `deposit`, `paid_now` and `due_at_appointment` in cents, `no_show` (`{at, disputed_at}`, or `null`) and `cancelled_by` (`shop`, `customer` or `null`). Otherwise `null`. |
| `fulfillment_status` | `ready`, `picked_up`, `shipped` or `done` once the shop marks it, with `fulfilled_at`. Otherwise `null`. |
| `accept_by` | While `status` is `authorized`: when nod declines the order automatically if the shop has not accepted it, in ISO 8601. The shop’s time to accept counts from payment, or from when it opens if the order came in while it was closed. Otherwise `null`. |
| `refunded` | Amount refunded so far, in cents. 0 unless refunded. |
| `source` | `agent` is the assistant that brought the order (`chatgpt`, `claude`, `perplexity`, `gemini`…), or `null` for a direct link. `first_seen` is when the order was prepared. |

## Verifying signatures

Every webhook carries `Nod-Signature: t=<unix>,v1=<hex>`. `v1` is the HMAC-SHA256 of `${t}.${rawBody}`, keyed with your webhook secret from Settings. Compute it over the raw body, before parsing, and compare in constant time.

verify-nod.js:

```js
import crypto from 'node:crypto'

// rawBody is the exact request body as text, before JSON.parse.
export function verifyNod(rawBody, header, secret) {
  const parts = Object.fromEntries(header.split(',').map((p) => p.split('=')))
  if (!parts.t || !parts.v1) return false
  // Reject events older than five minutes.
  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false
  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${parts.t}.${rawBody}`)
    .digest('hex')
  return expected.length === parts.v1.length &&
    crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
}

// Example: a Next.js route handler
export async function POST(req) {
  const raw = await req.text()
  const ok = verifyNod(raw, req.headers.get('nod-signature') ?? '', process.env.NOD_WEBHOOK_SECRET)
  if (!ok) return new Response('Invalid signature', { status: 400 })
  const event = JSON.parse(raw)
  if (event.type === 'order.paid') {
    // Fulfil the order. Use event.order as the idempotency key.
  }
  return new Response('ok')
}
```

> You can rotate the secret in Settings. Events are signed with the new secret from that moment, so update your endpoint at the same time.

## Ready to try it on a real shop?

Create a shop, connect Stripe and paste two lines. It takes minutes.

- [Get started](https://usenod.shop/signup)
- [How it works](https://usenod.shop/)

---

https://usenod.shop/docs
Language: English · [Română](https://usenod.shop/ro/docs.md) · [Español](https://usenod.shop/es/docs.md) · [Français](https://usenod.shop/fr/docs.md) · [हिन्दी](https://usenod.shop/hi/docs.md)
