Core resources


Administration


Booking flow

Booking details

Booking details as filled in by guests in the booking form

The booking detail object

Attributes

iduuid

Unique identifier

booking_iduuid | null
bookings.id

Identifier of the related booking

option_iduuid | null
services.id

Identifier of the selected option

service_iduuid | null
services.id

Identifier of the related service

created_attimestamp with time zone

Creation timestamp

updated_attimestamp with time zone

Last modification timestamp

namejsonb

Localized name of the form field

valuetext | null

Value filled in by the customer

The booking detail object
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"option_id": "00000000-0000-0000-0000-000000000000",
"service_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-05-11T07:14:07.692Z",
"updated_at": "2024-05-11T07:14:07.692Z",
"name": {},
"value": ""
}

List booking details

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

option_idFilter<uuid>

Identifier of the selected option

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

nameFilter<jsonb>

Localized name of the form field

valueFilter<text>

Value filled in by the customer

Responses

200

A list of booking details with the selected columns

206

Partial Content

GET/booking_details
curl -X GET "https://api.bookingmood.com/v1/booking_details?select=*" \
  -H "Authorization: Bearer YOUR_API_KEY"

Create booking details

Body

Partial<BookingDetail>
| Array<Partial<BookingDetail>>

Responses

201

The newly created booking details with the selected columns

POST/booking_details
curl -X POST "https://api.bookingmood.com/v1/booking_details" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '[]'

Delete booking details

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

option_idFilter<uuid>

Identifier of the selected option

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

nameFilter<jsonb>

Localized name of the form field

valueFilter<text>

Value filled in by the customer

Responses

204

The deleted booking details with the selected columns

DELETE/booking_details
curl -X DELETE "https://api.bookingmood.com/v1/booking_details" \
  -H "Authorization: Bearer YOUR_API_KEY"

Update booking details

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>

Identifier of the related booking

option_idFilter<uuid>

Identifier of the selected option

service_idFilter<uuid>

Identifier of the related service

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

nameFilter<jsonb>

Localized name of the form field

valueFilter<text>

Value filled in by the customer

Body

Partial<BookingDetail>

Responses

204

The updated booking details with the selected columns

PATCH/booking_details
curl -X PATCH "https://api.bookingmood.com/v1/booking_details" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{}'