List a bookable product's available slots

Returns every slot of a published bookable product's opening hours between `from` and `to`. Book only a slot whose `available` is true. With several resources, a slot is available while any has room. A span longer than 62 days, or than the product's advance booking limit, is shortened: `window.to` is the last day covered. `offeringId` applies that offering's duration and buffers. It is ignored when offering selection is not enabled on the site. Errors (422): `OFFERING_NOT_FOUND` for an unknown `offeringId`, `VALIDATION_FIELD_INVALID` when `to` is before `from`. 404 `PRODUCT_NOT_FOUND` for an unknown, unpublished or non-bookable product, or one without resources. > **Note:** Available only on sites with e-commerce enabled.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Site access
GET/products/{idOrSlug}/availability
Base URLhttps://api.lynkow.com/storefront/{siteId}

Path parameters

idOrSlug
string
required

Product identifier (prod_ prefixed id) or product slug. Only a product published on the site resolves

Query parameters

from
string
required

Required. First day of the window (`YYYY-MM-DD`), included

to
string
required

Required. Last day of the window (`YYYY-MM-DD`), included. A span too long is shortened: see `window.to`

fallback
boolean

Has no effect here: a missing translation never empties this response

locale
string

BCP 47 locale code (e.g. "en", "fr")

offeringId
string

Reservation offering identifier (roff_ prefixed id). 1-200 characters

partySize
integer

Number of guests, 1 to 50. It does not filter the slots: compare it with `seatsRemaining`

Max: 50

Min: 1

Feedback

Was this page helpful?