Go Headless

Changelog

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP

Core Modules
About Core Modules
sdk
essentials
web-methods

Host Modules
About Host Modules
dashboard
editor
site

Backend Modules
ai-site-chat
blog
bookings
cache
crm
data
ecom
events
restaurants
stores
realtime

Frontend Modules
About Frontend Modules
bookings
Introduction
Setup
Sample Flow
Shareable Booking Calendar Links
Shareable Booking Form Links
Shareable Bookings Service Page Links
checkoutBooking()
getCheckoutOptions()
getServiceAvailability()
crm
ecom
events
location
members
mobile
navigate-mobile
pay
pricing-plans
seo
site
storage
stores
window
site-realtime

Shareable Bookings Service Page Links

You can preselect a location for site visitors on the Bookings service page by creating shareable Bookings service page links. Customers can still change the selected location.

Send a shareable Bookings service page link

To send a shareable Bookings service page link:

  1. Visit the relevant service page on the live site and save both the <SITE_URL> and <SERVICE_SLUG> from the URL. The URL will look something like this:
    Copy
    Alternatively, you can also obtain the Bookings service page URL from the site's dashboard by following these steps.
  2. Retrieve the ID of the locations you want to preselect by calling listLocations() or queryLocations().
  3. Combine <SITE_URL>, <SERVICE_SLUG>, and <LOCATION_ID> to create the shareable link using the following format. If you want to preselect multiple locations, make sure to separate the IDs with commas.
    Copy
    For example:
    Copy
  4. Share the generated link with the customer.

How to get the Bookings service page URL from your dashboard

If you prefer to retrieve the Bookings service page URL directly from the site's dashboard, follow these steps to obtain the correct <SITE_URL> and <SERVICE_SLUG>.

  1. Get the <SITE_URL>.
    1. Navigate to the dashboard's Website Settings page.
    2. The <SITE_URL> is displayed in the Site address (URL) section.
  2. Get the <SERVICE_SLUG>.
    1. Go to the dashboard's SEO Settings for Booking Services page.
    2. Identify the relevant service and copy its <SERVICE_SLUG> from the Page URL column. Avoid duplicating /service-page when building the final link.
Did this help?