# Booking links

Use `https://{slug}.outdoorgrid.ai/book` for a shop subdomain, or `https://www.outdoorgrid.ai/s/{slug}/book` on the platform host. A custom shop domain does not serve the hosted `/book` flow. All parameters are optional; an invalid or unavailable choice is ignored or trimmed after the page checks the live catalog. A link never jumps straight to Pay.

| Parameter           | Value                                       | Effect                                                                  |
| ------------------- | ------------------------------------------- | ----------------------------------------------------------------------- |
| `first`, `last`     | `YYYY-MM-DD`                                | Trip dates. `last` defaults to `first`; the trip is at most 28 days.    |
| `days`              | 1 to 28                                     | Length when `last` is absent and `first` is present.                    |
| `people`            | 1 to 20                                     | Party size.                                                             |
| `set`               | Item ID with optional `:quantity`           | Rental pick. Repeat the parameter or separate picks with commas.        |
| `item`, `kind`      | Item or kind ID                             | Open the rental choice.                                                 |
| `tour`, `departure` | Tour ID or slug, departure UUID             | Open a particular tour and departure.                                   |
| `day`, `period`     | Day, then `full`, `morning`, or `afternoon` | Choose a tour day and part of day.                                      |
| `activity`          | Activity ID                                 | Choose the What card.                                                   |
| `lang`              | `en`, `it`, `de`, or `fr`                   | Guest language when the shop offers it.                                 |
| `src`               | `chatgpt`                                   | Count a booking sent by the ChatGPT app. Other values are not recorded. |

Build the URL with `URL` and `searchParams` so values are encoded. This Node 20 example prints a complete link; replace the shop slug and the catalog ID with your own values:

```js
const url = new URL("https://www.outdoorgrid.ai/s/your-shop-slug/book");
url.searchParams.set("first", "2026-12-20");
url.searchParams.set("last", "2026-12-22");
url.searchParams.set("people", "2");
url.searchParams.append("set", "your-rental-id:2");
console.log(url.toString());
```

For a day only tour link, include `tour`, `day`, and `people`. If several times fit, the guest chooses one. The page validates all picks against the shop's current stock, capacity, and local clock. Never add `return` or `embed` when building a normal link; those are reserved for the website integration.
