Book a product reservation slot
Creates a booking for a published bookable product. Send `startsAt`, `partySize`, the guest contact and `acceptsTerms: true`, plus `offeringId` when the product lists offerings. The server computes the end time and the price. A signed-in customer books with their account details. With a deposit paid online, the booking is `pending` and `deposit` carries the checkout URL. Otherwise it is `confirmed`. Fires the `reservation.booked` webhook and sends the booking emails the site has enabled. Errors (422): `TERMS_PAGE_NOT_CONFIGURED`, `TERMS_NOT_ACCEPTED`, `OFFERING_NOT_FOUND`, `OFFERING_REQUIRED`, `PARTY_SIZE_OUT_OF_RANGE`, `RESOURCE_NOT_IN_POOL`, `SLOT_UNAVAILABLE`, `CAPACITY_EXCEEDED`, `BOOKING_TAX_DISABLED`, `TAX_RATE_UNAVAILABLE`. 403 `ACCOUNT_REQUIRED` for a guest when accounts are required. 404 for an unknown product. > **Note:** Available only on sites with e-commerce enabled.
/products/{idOrSlug}/bookingshttps://api.lynkow.com/storefront/{siteId}Path parameters
idOrSlugstringrequiredProduct identifier (prod_ prefixed id) or product slug. Only a product published on the site resolves
Query parameters
localestringBuyer language, as the body `locale`. When both are sent, this one wins.
Request bodyrequired
guestEmailstringrequiredRequired. Guest email captured for the reservation. Valid email address. Max 320 characters
guestNamestringrequiredRequired. Guest name captured for the reservation. 1-200 characters
partySizeintegerrequiredRequired. Number of guests included in the reservation
startsAtstringrequiredRequired. Start datetime (ISO 8601)
_hpstringSpam-trap field that must remain empty when the site uses honeypot protection.
_tsintegerForm-load Unix timestamp in milliseconds when the site uses honeypot protection.
acceptsTermsbooleanMust be `true`, else 422 `TERMS_NOT_ACCEPTED`. A site without a terms page refuses every request with 422 `TERMS_PAGE_NOT_CONFIGURED`
guestPhonestringOptional guest phone captured for the reservation. 3-40 characters
localeanyBuyer language, never rejected, for the booking emails, terms and deposit payment page. Default: the site's default locale. Unsupported email languages fall back to the base language (`pt-BR` to `pt`), then English.
offeringIdstringReservation offering identifier (roff_ prefixed id). 1-200 characters
recaptchaTokenstringVerification token, required when the site uses CAPTCHA. A v3 token needs this operation's action.
resourceIdstringReservation calendar identifier (bres_ prefixed id); omit it to let the server assign a free calendar. 1-200 characters