Get reservations analytics
GET/api/v2/reservations/analytics
Returns analytics for reservations made across all the users reservations
Request
Query Parameters
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
counts
object
required
Count of reservations per state
guests
object
required
Count of unique guests
Count of guests that have made more than one reservation
Percent of guests that have made more than one reservation
conversion_rate
object
required
Percent of confirmed reservations
Percent of cancelled reservations
Percent of pending reservations
Most popular time slot in seconds in the UTC timezone. It can be converted to a time string, when doing, so you should take the businesses timezone offset into account.
Average party size of the reservations
Average lead time in days
{
"counts": {
"booked": 0,
"canceled": 0,
"placed": 0,
"rejected": 0,
"total": 0
},
"guests": {
"unique": 27,
"repeated": 6,
"repeated_percent": 22.2222222222
},
"conversion_rate": {
"confirmed": 75.9036144578,
"cancelled": 22.891566265,
"pending": 1.2048192771
},
"popular_time_slot": 45000,
"avg_party_size": 4.14285714285,
"avg_lead_time": 1.92063492063
}
- 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"
}