AvailabilityFilters
Interface
Filters for a reservation availability query.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Range start (inclusive) as a calendar date |
|
| Yes | Optional offering id from ReservationsService.offerings: slots then follow that<br>offering's duration. An id outside the product returns 422 |
|
| Yes | Optional party size (1 to 50). Slots are not filtered by it: compare it with each slot's |
|
| No | Range end (inclusive) as a calendar date |
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 |
|---|---|---|---|
|
| Yes |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
|
| No | The computed open slots across the effective window, in chronological order. |
|
| No | IANA timezone the slots are expressed in for display (e.g. |
|
| No | The effective window the slots cover. Its |
AvailabilitySlot
Interface
A single computed bookable slot for a reservation product.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No |
|
|
| No | Slot end as an ISO 8601 datetime. |
|
| No | Largest party one booking can take on this slot, never below 0. With several resources, the most seats free on any one. |
|
| No | Slot start as an ISO 8601 datetime (e.g. |
AvailabilityWindow
Interface
The effective date window the returned availability slots cover.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Window start as a calendar date |
|
| No | Window end as a calendar date |
Booking
Interface
A booking as returned on creation.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The booked slot end as an ISO 8601 datetime. |
|
| No | The email the booking was recorded under: the account email for a signed-in buyer, otherwise |
|
| 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 |
|
| Yes | The offering booked, with its |
|
| No | Number of guests. |
|
| Yes | Booking price in cents, set by the server. |
|
| No | Booking reference ( |
|
| 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. |
|
| No | The booked slot start as an ISO 8601 datetime. |
|
| No |
|
BookingCreateData
Interface
Input for book and bookings.create: the slot, party size, contact details and terms acceptance.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | The buyer's acceptance of the site's terms, ticked on the booking page. Only |
|
| No | Contact email, at most 320 characters. Replaced by the account email for a signed-in buyer. |
|
| 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. |
|
| Yes | Optional phone number, 3 to 40 characters. Replaced by the account phone on the same rule as |
|
| Yes | The buyer's language for this booking's emails, a BuyerLocale. Omitted or<br>empty, the request |
|
| Yes | Optional offering id from ReservationsService.offerings. Required (422<br> |
|
| No | Number of guests, 1 to 50. Must fit the slot's |
|
| 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> |
|
| No | The chosen slot start, copied from an AvailabilitySlot |
BookingDeposit
Interface
Buyer-facing details required to complete a reservation deposit.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Deposit amount in minor currency units (for example, cents). Always a positive integer. |
|
| No | Short-lived, opaque capability authorizing a guest to refresh this payment.<br>Pass it unchanged to ReservationsService.refreshPayment after checkout. |
|
| No | Opaque hosted-checkout URL where the buyer completes the deposit. |
|
| No | ISO 4217 currency code for the deposit (for example, |
|
| No | Opaque payment reference (prefixed |
BookingDepositResult
TypeAlias
Result of ReservationsService.book: a confirmed Booking, or a
pending one carrying the deposit the buyer must pay at checkout.
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.
type BuyerLocale = stringPaymentRefreshResult
Interface
Status-only response returned by ReservationsService.refreshPayment.
Property | Type | Optional | Description |
|---|---|---|---|
|
| No | Current reservation lifecycle status. |
|
| No | Current payment state, or a non-mutating reconciliation outcome. |
PaymentRefreshStatus
TypeAlias
Reconciliation outcomes that do not replace the durable PaymentStatus.
type PaymentRefreshStatus = PaymentStatus | "ignored" | "mismatch"PaymentStatus
TypeAlias
Durable payment lifecycle states exposed to storefront consumers.
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 |
|---|---|---|---|
|
| No | Duration of a booking under this offering, in minutes. |
|
| No | Offering id ( |
|
| Yes |
|
|
| No | Offering name shown to the buyer. Never empty, at most 255 characters. |
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Maximum party size for this offering, or |
|
| No | Minimum party size for this offering, or |
|
| No | Merchant-defined display position. Ascending, but not guaranteed to be contiguous. |
|
| No | Price the buyer pays, in cents, VAT included when the site charges VAT. Equal to<br>ReservationOffering.priceGrossCents. |
|
| No | How the merchant wants prices shown: |
|
| No | ReservationOffering.priceCents with VAT, in cents: equal to |
|
| No | ReservationOffering.priceCents without VAT, in cents. Equal to |
|
| Yes | BCP 47 locale code the request asked for (e.g. |
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 |
|---|---|---|---|
|
| No | Resource id ( |
|
| Yes |
|
|
| Yes | BCP 47 locale code of the record actually served (e.g. |
|
| No | Display name set by the merchant (e.g. |
|
| Yes | BCP 47 locale code the request asked for (e.g. |