HolidazeBookings
Bookings
Bookings related to Holidaze
These are authenticated endpoints. You can visit authentication to register an account.
This endpoint allows you to create, read, update and delete bookings.
These endpoints support pagination and sorting. Read more about these features here.
The Booking model
Prop | Type | Default |
---|---|---|
id | string | - |
dateFrom | string | - |
dateTo | string | - |
guests | integer | - |
created | string | - |
updated | string | - |
Query parameters
Not all of the properties of a booking are returned by default. You can use the following optional query parameters to include additional properties in the response.
Prop | Type | Default |
---|---|---|
_customer | boolean | false |
_venue | boolean | false |
All bookings
GET/holidaze/bookings
Retrieve all bookings.
If you want to get all bookings by a specific profile, you can use the bookings by profile endpoint.
Single booking
GET/holidaze/bookings/<id>
Retrieve a single booking based on its id.
Create booking
POST/holidaze/bookings
Create a new booking.
Update booking
PUT/holidaze/bookings/<id>
Updating a booking.
Delete booking
DELETE/holidaze/bookings/<id>
Delete a booking based on its id.
Returns an empty 204 No Content
response on success.