> For the complete Lynkow documentation index in agent-friendly format, see [llms.txt](/llms.txt).

# SDK Types: Reservation

**Published**: 2026-11-30
**Category**: Types

## `AvailabilityFilters`

*Interface*

Filters for a reservation availability query.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `from` | `string` | No | Range start (inclusive) as a calendar date `'YYYY-MM-DD'`. Required. |
| `offeringId` | `string` | Yes | Optional offering id from ReservationsService.offerings: slots then follow that<br>offering's duration. An id outside the product returns 422 `OFFERING_NOT_FOUND`. |
| `partySize` | `number` | Yes | Optional party size (1 to 50). Slots are not filtered by it: compare it with each slot's `seatsRemaining`. |
| `to` | `string` | No | Range end (inclusive) as a calendar date `'YYYY-MM-DD'`. Must not precede `from`. A too-wide span is shortened. Required. |


---

## `AvailabilityResponse`

*Interface*

The availability read response for a bookable product. With a locale, the
LocaleResolution fields say which locale was served.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `locale` | `string` | Yes | BCP 47 locale code of the record actually served (e.g. `'en'`, `'fr'`).<br>Equals `requestedLocale` unless `isFallback` is `true`. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |
| `slots` | `AvailabilitySlot[]` | No | The computed open slots across the effective window, in chronological order. |
| `timezone` | `string` | No | IANA timezone the slots are expressed in for display (e.g. `'Europe/Paris'`). |
| `window` | `AvailabilityWindow` | No | The effective window the slots cover. Its `to` may be earlier than requested when the span was clamped server-side. |


---

## `AvailabilitySlot`

*Interface*

A single computed bookable slot for a reservation product.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `available` | `boolean` | No | `true` when the slot can be booked now: a seat is free and the slot is inside the booking window. |
| `endsAt` | `string` | No | Slot end as an ISO 8601 datetime. |
| `seatsRemaining` | `number` | No | Largest party one booking can take on this slot, never below 0. With several resources, the most seats free on any one. |
| `startsAt` | `string` | No | Slot start as an ISO 8601 datetime (e.g. `'2026-07-10T18:00:00.000Z'`). |


---

## `AvailabilityWindow`

*Interface*

The effective date window the returned availability slots cover.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `from` | `string` | No | Window start as a calendar date `'YYYY-MM-DD'`, echoing the requested `from`. |
| `to` | `string` | No | Window end as a calendar date `'YYYY-MM-DD'`. May be earlier than the requested `to` when the server clamps an over-wide span. |


---

## `Booking`

*Interface*

A booking as returned on creation.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `endsAt` | `string` | No | The booked slot end as an ISO 8601 datetime. |
| `guestEmail` | `string` | No | The email the booking was recorded under: the account email for a signed-in buyer, otherwise `guestEmail`. |
| `guestName` | `string` | No | The name the booking was recorded under: the account name for a signed-in buyer whose<br>email is verified and who has one, otherwise the submitted `guestName`. |
| `offering` | `Pick<ReservationOffering, "id" \| "label">` | Yes | The offering booked, with its `label` as it was at booking time. Omitted when the<br>booking has no offering. |
| `partySize` | `number` | No | Number of guests. |
| `priceCents` | `number` | Yes | Booking price in cents, set by the server. |
| `reference` | `string` | No | Booking reference (`'bkg_...'`) for the buyer's records. |
| `resource` | `ReservationResource` | Yes | The booked resource. Present only when the merchant lets buyers pick a resource for<br>this product, whether the buyer picked it or it was assigned. |
| `startsAt` | `string` | No | The booked slot start as an ISO 8601 datetime. |
| `status` | `"confirmed"` | No | `'confirmed'`: a booking without an online deposit is confirmed at once. One awaiting<br>a deposit comes back as `'pending'` through BookingDepositResult. |


---

## `BookingCreateData`

*Interface*

Input for `book` and `bookings.create`: the slot, party size, contact details and terms acceptance.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `acceptsTerms` | `true` | No | The buyer's acceptance of the site's terms, ticked on the booking page. Only `true` is<br>accepted (422 `TERMS_NOT_ACCEPTED`); a site with no terms page refuses every booking<br>(422 `TERMS_PAGE_NOT_CONFIGURED`). |
| `guestEmail` | `string` | No | Contact email, at most 320 characters. Replaced by the account email for a signed-in buyer. |
| `guestName` | `string` | No | Contact name, 1 to 200 characters. Replaced by the account name for a signed-in buyer<br>whose email is verified and who has one on file. |
| `guestPhone` | `string` | Yes | Optional phone number, 3 to 40 characters. Replaced by the account phone on the same rule as `guestName`. |
| `locale` | `string` | Yes | The buyer's language for this booking's emails, a BuyerLocale. Omitted or<br>empty, the request `locale` option, then the client locale, then the site default apply. |
| `offeringId` | `string` | Yes | Optional offering id from ReservationsService.offerings. Required (422<br>`OFFERING_REQUIRED`) when that list is not empty. The price is always set by the server. |
| `partySize` | `number` | No | Number of guests, 1 to 50. Must fit the slot's `seatsRemaining`. |
| `resourceId` | `string` | Yes | Optional resource id from ReservationsService.resources. Ignored when that list<br>is empty; omit it to assign a free resource. An id outside the list returns 422<br>`RESOURCE_NOT_IN_POOL`. |
| `startsAt` | `string` | No | The chosen slot start, copied from an AvailabilitySlot `startsAt`. Full ISO 8601 datetime. |


---

## `BookingDeposit`

*Interface*

Buyer-facing details required to complete a reservation deposit.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `amountCents` | `number` | No | Deposit amount in minor currency units (for example, cents). Always a positive integer. |
| `captureToken` | `string` | No | Short-lived, opaque capability authorizing a guest to refresh this payment.<br>Pass it unchanged to ReservationsService.refreshPayment after checkout. |
| `checkoutUrl` | `string` | No | Opaque hosted-checkout URL where the buyer completes the deposit. |
| `currency` | `string` | No | ISO 4217 currency code for the deposit (for example, `'EUR'`). |
| `paymentId` | `string` | No | Opaque payment reference (prefixed `'pay_...'`) used by ReservationsService.refreshPayment. |


---

## `BookingDepositResult`

*TypeAlias*

Result of ReservationsService.book: a `confirmed` Booking, or a
`pending` one carrying the `deposit` the buyer must pay at checkout.

```typescript
type BookingDepositResult = Booking & { deposit?: never } | Omit<Booking, "status"> & { deposit: BookingDeposit; status: "pending" }
```

---

## `BuyerLocale`

*TypeAlias*

The buyer's language, as a BCP 47 tag (for example `'es'`, `'pt-BR'`), normally
one of the site's enabled locales. The API keeps it as sent, normalized and
capped at 35 characters, and never rejects a value it cannot serve.

The buyer emails are sent in that language: their fixed strings exist in the
24 official EU languages and are sent in English beyond them, while the
merchant's custom email texts can be written in every site language.

```typescript
type BuyerLocale = string
```

---

## `PaymentRefreshResult`

*Interface*

Status-only response returned by ReservationsService.refreshPayment.

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `bookingStatus` | `"pending" \| "confirmed" \| "completed" \| "cancelled" \| "no_show" \| null` | No | Current reservation lifecycle status. `null` only when no payable reservation was<br>resolved; normally `pending` before capture and `confirmed` after capture. |
| `status` | `PaymentRefreshStatus` | No | Current payment state, or a non-mutating reconciliation outcome. |


---

## `PaymentRefreshStatus`

*TypeAlias*

Reconciliation outcomes that do not replace the durable PaymentStatus.

```typescript
type PaymentRefreshStatus = PaymentStatus | "ignored" | "mismatch"
```

---

## `PaymentStatus`

*TypeAlias*

Durable payment lifecycle states exposed to storefront consumers.

```typescript
type PaymentStatus = "pending" | "processing" | "captured" | "failed" | "expired"
```

---

## `ReservationOffering`

*Interface*

An offering of a bookable product, with its own price, duration and party-size bounds,
from ReservationsService.offerings. With a locale, `label` is translated and the
LocaleResolution fields say which locale was served.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `durationMin` | `number` | No | Duration of a booking under this offering, in minutes. |
| `id` | `string` | No | Offering id (`'roff_...'`). Pass it as AvailabilityFilters.offeringId and BookingCreateData.offeringId. |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `label` | `string` | No | Offering name shown to the buyer. Never empty, at most 255 characters. |
| `locale` | `string` | Yes | BCP 47 locale code of the record actually served (e.g. `'en'`, `'fr'`).<br>Equals `requestedLocale` unless `isFallback` is `true`. |
| `maxPartySize` | `number \| null` | No | Maximum party size for this offering, or `null` when the resource capacity is the only ceiling. |
| `minPartySize` | `number \| null` | No | Minimum party size for this offering, or `null` when only the global minimum of 1 applies. |
| `position` | `number` | No | Merchant-defined display position. Ascending, but not guaranteed to be contiguous. |
| `priceCents` | `number` | No | Price the buyer pays, in cents, VAT included when the site charges VAT. Equal to<br>ReservationOffering.priceGrossCents. `0` for a free offering. |
| `priceDisplayMode` | `"inclusive" \| "exclusive"` | No | How the merchant wants prices shown: `'inclusive'` shows the prices with VAT<br>(`priceGrossCents`), `'exclusive'` without it (`priceNetCents`). `'inclusive'` unless the<br>merchant chose otherwise. Display only: it never changes the amount charged. |
| `priceGrossCents` | `number` | No | ReservationOffering.priceCents with VAT, in cents: equal to `priceCents`. Always at<br>the merchant country's rate, the rate a booking is charged at. |
| `priceNetCents` | `number` | No | ReservationOffering.priceCents without VAT, in cents. Equal to `priceGrossCents` when<br>no VAT applies. Show it when ReservationOffering.priceDisplayMode is `'exclusive'`. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |


---

## `ReservationResource`

*Interface*

A resource the buyer can choose for a product (a stylist, a room), from
ReservationsService.resources. With a locale, `name` is translated and the
LocaleResolution fields say which locale was served.

Extends: `LocaleResolution`

| Property | Type | Optional | Description |
| --- | --- | --- | --- |
| `id` | `string` | No | Resource id (`'bres_...'`). Pass it as BookingCreateData.resourceId to book this resource. |
| `isFallback` | `boolean` | Yes | `true` when the record is served in another locale because `requestedLocale` has no translation.<br>Absent when the request carried no locale. Never `true` with `fallback: false`. |
| `locale` | `string` | Yes | BCP 47 locale code of the record actually served (e.g. `'en'`, `'fr'`).<br>Equals `requestedLocale` unless `isFallback` is `true`. |
| `name` | `string` | No | Display name set by the merchant (e.g. `'Marie'`, `'Room 1'`). Never empty. |
| `requestedLocale` | `string` | Yes | BCP 47 locale code the request asked for (e.g. `'de'`), as sent in the<br>`locale` request option or the client's configured locale.<br>Absent when the request carried no locale. |