Go Headless

/

SDK
Articles
Get Started
Work with the SDK
Set up a Client
Use the Wix MCP
What's New

Core Modules
About Core Modules
sdk
sdk-react (deprecated)
essentials
web-methods

Host Modules
About Host Modules
dashboard
dashboard-react (deprecated)
editor
site

Backend Modules
About Backend Modules
activity-counters
analytics
async-jobs
ai-site-chat
app-management
auth-management
automations
benefit-programs
billing
blog
bookings
business-tools
cache
calendar
captcha
categories
comments
consent-policy
crm
dashboard-management
data
data-extension-schemas
ecom
email-marketing
email-subscriptions
embeds
events
forms
forum
get-paid
groups
http-functions
identity
inbox
loyalty
marketing
marketing-consent
marketing-tags
media
members
moderation-rules
multilingual
notifications
payments
portfolio
pricing-plans
pro-gallery
redirects
reports
restaurants
reviews
search
secrets
stores
tags
urls
site-plugins
sender-details
sender-emails
realtime

Account Level Modules
About Account Level APIs
b2b-site-management
domains
resellers
user-management
sites

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?