v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBBookings
Validate a booking.
Validates a booking and returns a result stating if the booking is valid and any charges, fees, or credits that are going to be used.
Required scopes: flex.space.bookings.validate
post/api/v2/organizations/{orgSlug}/bookings/validate
Path parameters
orgSlugstring required
organization slug
Request body
Example request
{
"_id": "603dfbc260f4054084125d30",
"resource": "603dfbc260f4054084125d36",
"start": "2024-10-31T13:00:00.000Z",
"end": "2024-10-31T13:00:00.000Z",
"member": "603dfbc260f4054084125d36",
"company": "603dfbc260f4054084125d36",
"editFrom": "2024-10-31T13:00:00.000Z"
}Response
Example response
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "603dfbc260f4054084125d39",
"timezone": "Europe/London",
"start": "2024-10-31T13:00:00.000Z",
"end": "2024-10-31T13:30:00.000Z",
"recurrence": {
"rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10",
"exdates": [
"2024-10-31T13:00:00.000Z"
]
},
"seriesStart": "2024-10-31T13:00:00.000Z",
"seriesEnd": "2024-10-31T13:30:00.000Z",
"location": "603dfbc260f4054084125d39",
"company": "603dfbc260f4054084125d39",
"member": "603dfbc260f4054084125d39",
"resource": "603dfbc260f4054084125d39",
"fees": [
{
"date": "2017-10-31T00:00:00.000Z",
"extraFees": [],
"credits": [
{
"count": 2,
"credit": "594932ea518f3f150d306c89"
}
],
"customPrice": 100
}
],
"reference": "81LCV6S",
"title": "Meeting with John",
"rate": "603dfbc260f4054084125d39",
"description": "Meeting with John at the office.",
"isTentative": true,
"extras": [
{
"_id": "603dfbc260f4054084125d39",
"count": 2
}
],
"visitors": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"members": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"serviceSlots": {
"before": 10,
"after": 10
},
"source": "admin",
"createdAt": "2022-02-07T10:03:33.169Z",
"createdBy": "5bbb155174321f100085eac1",
"modifiedAt": "2022-02-08T10:03:33.169Z",
"modifiedBy": "5bbb155174321f100085eac1"
}