Get all guests within a business
GET/api/v2/businesses/:business_id/guests
Retrieve all the guests within a specific business
Request
Path Parameters
Query Parameters
Possible values: >= 1
Default value: 1
Page of items to fetch
Possible values: >= 1
Number of items per page.
Search query by first_name, last_name or email
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
Email of the guest
First name of the guest
Last name of the guest
Birthday of the guest
Possible values: >= 6 characters and <= 15 characters, Value must match regular expression ^[0-9]*$
Phone number of the guest
Possible values: >= 2 characters and <= 2 characters, Value must match regular expression ^[A-Z]{2}$
Country code of the phone number
Possible values: non-empty and <= 4 characters, Value must match regular expression ^[0-9]+$
Country prefix of the phone number
General note about the guest
Note about the guest's visit
{
  "page": 1,
  "max_page": 1,
  "count": 0,
  "items": [
    {
      "id": "120c50ab-24ae-48f9-8860-ec0e9adea9ec",
      "email": "john.doe@example.com",
      "first_name": "John",
      "last_name": "Doe",
      "birthday": "1990-01-01",
      "phone": "789998877",
      "phone_country_code": "CH",
      "phone_country_prefix": "41",
      "tags": [
        "VIP"
      ],
      "general_note": "VIP customer",
      "visit_note": "Birthday party"
    }
  ]
}
- 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"
}