Skip to content

Send an enquiry

POST
/public/v1/booking-enquiries
curl --request POST \
--url https://example.kwickbooking.com/public/v1/booking-enquiries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "venueId": null, "name": "Alex Brown", "phone": "07911 123456", "email": null, "subject": "Private hire for 40", "message": "We'\''d like the upstairs room on a Saturday in November.", "bookingReference": null, "guestType": null }'

Passes an enquiry to the venue’s team, for example a large party, private hire, a special request, or a guest who wants none of the times offered. Needs the guest’s name and a phone number or email. With a booking reference and the phone on that booking, the enquiry is attached to the booking. Send an Idempotency-Key header.

Media typeapplication/json

POST /public/v1/booking-enquiries: an enquiry for the venue’s team (large parties, private hire, special requests). With BookingReference and the phone on that booking it is attached to the booking. A phone or an email is needed to reply.

object
venueId
required
null | string format: uuid
name
required
string
phone
required
null | string
email
required
null | string
subject
required
string
message
required
string
bookingReference
null | string
guestType
null | string
Example
{
"venueId": null,
"name": "Alex Brown",
"phone": "07911 123456",
"email": null,
"subject": "Private hire for 40",
"message": "We'd like the upstairs room on a Saturday in November.",
"bookingReference": null,
"guestType": null
}

Created

Media typeapplication/json

The enquiry raised, with a summary to read out.

object
enquiryId
required
string format: uuid
venueId
required
string format: uuid
summary
required
string
Example
{
"enquiryId": "01920000-0000-7000-8000-000000000008",
"venueId": "01920000-0000-7000-8000-000000000001",
"summary": "Thanks, I've passed your enquiry to Soho. They'll be in touch."
}
Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples

Venue required

{
"type": "https://developers.kwickblocks.ai/problems/venue-required",
"title": "Venue required",
"status": 400,
"detail": "Please say which venue this is for."
}

Invalid or missing integration key (https://developers.kwickblocks.ai/problems/invalid-key)

Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples
Exampleinvalid-key

Invalid or missing integration key

{
"type": "https://developers.kwickblocks.ai/problems/invalid-key",
"title": "Invalid or missing integration key",
"status": 401,
"detail": "This integration key isn't valid. Ask the venue's admin for a new one."
}
Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples
Examplecapability-missing

Capability not granted

{
"type": "https://developers.kwickblocks.ai/problems/capability-missing",
"title": "Capability not granted",
"status": 403,
"detail": "This integration key isn't allowed to do that. Ask the venue's admin to add the capability."
}
Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples

Venue not found

{
"type": "https://developers.kwickblocks.ai/problems/venue-not-found",
"title": "Venue not found",
"status": 404,
"detail": "I couldn't find that venue."
}
Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples
Exampleidempotency-conflict

Idempotency-Key conflict

{
"type": "https://developers.kwickblocks.ai/problems/idempotency-conflict",
"title": "Idempotency-Key conflict",
"status": 409,
"detail": "That Idempotency-Key was already used for a different request."
}
Media typeapplication/problem+json

RFC 9457 problem details. type is a URI with a page describing the problem.

object
type
required
string format: uri
title
required
string
status
required
integer format: int32
detail
required

Safe to read to a guest.

string
instance
string
traceId
string
code

A machine-readable code on the widget’s routes.

string
Examples

Too many requests

{
"type": "https://developers.kwickblocks.ai/problems/rate-limited",
"title": "Too many requests",
"status": 429,
"detail": "There have been too many requests. Please try again in a minute."
}