Â
Â
Note: This module is universal. Functions in this module can run on both the backend and frontend, unless specified otherwise.
With Locations, you can define multiple physical locations for their business. You can also set individual opening hours for each location.
The Locations API allows you to:
Read more about how site owners can manage their location-specific bookings.
To use the Locations API, import { locations }
from wix-business-tools.v2
:
It’s important to note the following points before starting to code:
businessSchedule
object.archiveLocation()
function.location
parameter when using the updateLocation()
function. Currently, you can't partially update a location.locationType
isn't currently supported.INACTIVE
isn't currently supported.ACTIVE
or INACTIVE
.Functions in the Locations API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.