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.

Required access
Send
  • Publishable keyX-Lynkow-Pk
Optional: customer session tokenSite access
POST/products/{idOrSlug}/bookings
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

locale
string

Buyer language, as the body `locale`. When both are sent, this one wins.

Request body
required

  • guestEmail
    string
    required

    Required. Guest email captured for the reservation. Valid email address. Max 320 characters

  • guestName
    string
    required

    Required. Guest name captured for the reservation. 1-200 characters

  • partySize
    integer
    required

    Required. Number of guests included in the reservation

  • startsAt
    string
    required

    Required. Start datetime (ISO 8601)

  • _hp
    string

    Spam-trap field that must remain empty when the site uses honeypot protection.

  • _ts
    integer

    Form-load Unix timestamp in milliseconds when the site uses honeypot protection.

  • acceptsTerms
    boolean

    Must be `true`, else 422 `TERMS_NOT_ACCEPTED`. A site without a terms page refuses every request with 422 `TERMS_PAGE_NOT_CONFIGURED`

  • guestPhone
    string

    Optional guest phone captured for the reservation. 3-40 characters

  • locale
    any

    Buyer 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.

  • offeringId
    string

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

  • recaptchaToken
    string

    Verification token, required when the site uses CAPTCHA. A v3 token needs this operation's action.

  • resourceId
    string

    Reservation calendar identifier (bres_ prefixed id); omit it to let the server assign a free calendar. 1-200 characters

Feedback

Was this page helpful?