Retrieve restaurant availabilities
const url = 'https://public.api.barestho.com/api/v1/partnership/restaurants/example/availabilities/?from_datetime=example&to_datetime=example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://public.api.barestho.com/api/v1/partnership/restaurants/example/availabilities/?from_datetime=example&to_datetime=example' \ --header 'Authorization: Basic <credentials>'Returns the booking availability slots for the given restaurant. Partners should query this endpoint before creating a reservation to ensure the desired time slot is open. The response follows the same shape as PartnerRestaurant and may include time-slot metadata depending on the restaurant’s configuration.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The unique identifier of the restaurant whose availabilities are requested.
Query Parameters
Section titled “Query Parameters ”The date and time from which availabilities will be calculated.
The date and time to which availabilities will be calculated.
Responses
Section titled “ Responses ”Availability information for the specified restaurant.
Represents a restaurant that is accessible to the authenticated partner. All fields except schema_name are read-only and managed by the restaurant owner on the Barestho platform.
object
Unique numeric identifier for the restaurant, assigned by the server.
Human-readable name of the restaurant as configured by its owner.
Internal tenant identifier used to scope database queries. This value is assigned during restaurant onboarding and must be unique across the platform. Maximum length is 63 characters.
Full postal address of the restaurant.
URL of the restaurant’s public website, if provided.
Geographic latitude of the restaurant location (WGS 84 decimal degrees).
Geographic longitude of the restaurant location (WGS 84 decimal degrees).
IANA timezone identifier for the restaurant (e.g. Europe/Paris). All reservation start_time values should be interpreted in this timezone.
Example generated
{ "schema_name": "example"}