Delete a guest by id within a business
DELETE/api/v2/businesses/:business_id/guests/:guest_id
Delete a guest by their id within a specific business
Request
Path Parameters
Responses
- 200
- 400
- 401
- 403
- 404
- 422
- 500
- application/json
- Schema
- Example (from schema)
Schema
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
{
"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"
}