Core resources


Administration


Booking flow

Contact bookings

Link between contacts and bookings

The contact booking object

Attributes

iduuid

Unique identifier

booking_iduuid
bookings.id

Identifier of the related booking

contact_iduuid
contacts.id

Identifier of the related contact

created_attimestamp with time zone

Creation timestamp

The contact booking object
{
"id": "00000000-0000-0000-0000-000000000000",
"booking_id": "00000000-0000-0000-0000-000000000000",
"contact_id": "00000000-0000-0000-0000-000000000000",
"created_at": "2024-12-06T05:28:34.396Z"
}

List contact bookings

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

contact_idFilter<>

Identifier of the related contact

created_atFilter<>

Creation timestamp

Responses

200

A list of contact bookings with the selected columns

206

Partial Content

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

Create contact bookings

Body

Partial<ContactBooking>
| Array<Partial<ContactBooking>>

Responses

201

The newly created contact bookings with the selected columns

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

Delete contact bookings

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

contact_idFilter<>

Identifier of the related contact

created_atFilter<>

Creation timestamp

Responses

204

The deleted contact bookings with the selected columns

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

Update contact bookings

Filters

idFilter<>

Unique identifier

booking_idFilter<>

Identifier of the related booking

contact_idFilter<>

Identifier of the related contact

created_atFilter<>

Creation timestamp

Body

Partial<ContactBooking>

Responses

204

The updated contact bookings with the selected columns

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