Get all businesses
GET/api/v3/businesses
Retrieve all business
Request
Query Parameters
Possible values: >= 1
Default value: 1
Page of items to fetch
Possible values: >= 1
Number of items per page.
Search by business name or city
Filter businesses by city
Filter businesses by access group ID
Possible values: [created_at
, name
]
Default value: created_at
Field to sort businesses by
Possible values: [asc
, desc
]
Default value: asc
Order direction for sorting
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Possible values: >= 1
Default value: 1
Current page
Possible values: >= 1
Default value: 1
Max page based on current per_page
value and count
Default value: 0
Number of items per page.
items
object[]
required
Unique ID of the guest
Access group id that the business belongs to
Max number of guest in a booking that the business can auto accept
Business bio
City where the business is located
Country where the business is located
Country code of the business
Currency of the business
Email of the business
Facebook page of the business
Latitude of the business
Longitude of the business
If the business has reservations enabled
Instagram page of the business
Logo of the business
Max number of guests in a reservation
Min time before a reservation can be made
Name of the business
Phone number of the business
Post code of the business
Slug of the business
Possible values: [draft
, waiting_for_approval
, rejected
, published
, hidden
]
State in which business is
Street where the business is located
Tagline of the business
Default duration of reservation in seconds
Number of time slots available for booking
Timezone of the business
Name of the floor plan unit
Possible values: [Style 1
, Style 2
]
Style of the floor plan uni
Website of the business
Youtube page of the business
Cover photo of the business
opening_hours
object
nullable
{
"page": 1,
"max_page": 1,
"count": 0,
"items": [
{
"id": "120c50ab-24ae-48f9-8860-ec0e9adea9ec",
"access_group_id": "ffb0fbe2-9127-4e86-bb5c-46d5cb0f5ca1",
"auto_accept_booking_limit": 6,
"bio": "The best gym in town",
"city": "Paris",
"country": "France",
"country_code": "FR",
"currency": "EUR",
"email": "power@gym.com",
"facebook_url": "https://www.facebook.com/powergym",
"latitude": 48.8566,
"longitude": 22.3522,
"has_reservations": true,
"instagram_url": "https://www.instagram.com/powergym",
"logo_url": "https://www.powergym.com/logo.png",
"max_reservation_size": 10,
"min_time_before_reservation": 30,
"name": "PowerGym",
"phone": "+33123456789",
"post_code": "75019",
"slug": "power-gym",
"state": "draft",
"street": "12 rue du coquelicot",
"tagline": "The best gym in town",
"time_of_stay": 2700,
"time_slots": 10,
"timezone": "Europe/Paris",
"floor_plan_unit_name": "Table",
"floor_plan_unit_style": "Style 1",
"website_url": "https://www.powergym.com",
"youtube_url": "https://www.youtube.com/powergym",
"cover_photo_url": "https://www.powergym.com/cover.png",
"photo_urls": [
[
"https://www.powergym.com/photo1.png"
]
],
"opening_hours": {
"monday": [
[
"08:00-12:00"
]
],
"tuesday": [
[
"08:00-12:00"
]
],
"wednesday": [
[
"08:00-12:00"
]
],
"thursday": [
[
"08:00-12:00"
]
],
"friday": [
[
"08:00-12:00"
]
],
"saturday": [
[
"08:00-12:00"
]
],
"sunday": [
[
"08:00-12:00"
]
]
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
HTTP status code
Error message
Possible values: [query
, body
, response
, param
]
Where in the request the error occurred
errors
object[]
required
Possible values: non-empty
Path to the property with the error
constraints
object
required
Error message
{
"statusCode": 404,
"message": "Cannot find item",
"location": "query",
"errors": [
{
"path": "business.id",
"constraints": {
"object_required_property": "Required property"
}
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
HTTP status code
Error message
Error name
{
"statusCode": 404,
"message": "Cannot find item",
"error": "Not Found"
}