Introduction
The Reservations Locations API allows you to configure reservation settings for a restaurant location.
A reservation location represents a physical restaurant and holds the ID of a location
object. The location object holds the address that corresponds to the on-site location of that restaurant (except when the restaurant has no on-site location). Each reservation location has its own calendar, scheduling rules, table management settings, and other attributes that can be set and modified by the API.
With the Reservations Locations API, you can:
- Query or list reservation locations.
- Update the configuration of existing reservation locations.
Note: Reservation locations can only be created and archived through the Dashboard, or using the Locations API.
Once a reservation location has been configured, you can:
- Retrieve time slots for the location using the Time Slots API.
- Make reservations for the location using a Wix site, or the Reservations API.
Before you begin
It’s important to note the following points before starting to code:
- The site owner must install the Wix Table Reservations app.
Use cases
Reservation app for restaurants on a Wix site
Terminology
For a comprehensive glossary of Reservations terms, see Terminology.
Reservation Locations: Supported Filters and Sorting
The following table shows field support for filters and sorting for the Reservation Location object:
Field | Supported Filters | Sortable |
---|---|---|
id | $eq , $ne , $in |
Related content: API Query Language, Query Reservation Locations
This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a reservation location by ID.
The FULL
fieldset can only be retrieved by users with the READ RESERVATION LOCATIONS (FULL)
or MANAGE RESERVATION LOCATIONS
permission scopes.
Permission Scopes
For app development, you must have one of the following permission scopes:This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a reservation location. Supports partial updates.
Each time the reservation location is updated, revision
increments by 1. The existing revision must be included when updating the reservation location. This ensures you're working with the latest reservation location information, and it prevents unintended overwrites.
You cannot use this endpoint to change a reservation location's location
object. Attempting to do so will cause the server to return an application error.
Permission Scopes
For app development, you must have one of the following permission scopes:This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of reservation locations given the provided paging, filtering, and sorting. Up to 100 reservation locations can be returned per request.
For a detailed list of supported operations, see the Supported Filters and Sorting article. To learn how to query reservation locations, see API Query Language.
The FULL
fieldset can only be retrieved by users with the READ RESERVATION LOCATIONS (FULL)
or MANAGE RESERVATION LOCATIONS
permission scopes.
Permission Scopes
For app development, you must have one of the following permission scopes:This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of up to 100 reservation locations.
The FULL
fieldset can only be retrieved by users with the READ RESERVATION LOCATIONS (FULL)
or MANAGE RESERVATION LOCATIONS
permission scopes.
Permission Scopes
For app development, you must have one of the following permission scopes:This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a reservation location is updated.
Permission Scopes
For app development, you must have one of the following permission scopes:This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a reservation location is updated.