Μετάβαση στο περιεχόμενο

Booking change requests

Changes a guest requested to their booking in the guest portal, for the host to approve or reject

The booking change request object

Attributes

iduuid

Unique identifier

booking_iduuid
bookings.id

Identifier of the related booking

organization_iduuid
organizations.id

Identifier of the related organization

created_atread-onlytimestamp with time zone

Creation timestamp

updated_atread-onlytimestamp with time zone

Last modification timestamp

decided_attimestamp with time zone | null

When the request was approved, rejected or withdrawn

decided_byuuid | null

Identifier of the user who approved or rejected the request, if a user did

eventsArray<BookingChangeRequestEvent>

The requested state of each calendar event of the booking: unit, dates, occupancy and booking form values. Empty for a cancellation

reasontext | null

Why the host rejected the request, shown to the guest

statusBookingChangeRequestStatus

Status of the request: pending, approved, rejected or withdrawn by the guest

total_afterint64

Total of the booking with the requested changes, in cents. 0 for a cancellation

total_beforeint64

Total of the booking when the request was made, in cents

typeBookingChangeRequestType

What the guest requested: change (other dates, unit, occupancy or options) or cancellation

Related resources

Embed related resources in the response with the select parameter, for example select=*,bookings(*). Resources related through more than one column need the column as a hint, like table!column(*).

bookings(*)object | null
bookings

The booking referenced by booking_id.

organizations(*)object | null
organizations

The organization referenced by organization_id.

The booking change request object
JSON
{
  "id": "00000000-0000-0000-0000-000000000000",
  "booking_id": "00000000-0000-0000-0000-000000000000",
  "organization_id": "00000000-0000-0000-0000-000000000000",
  "created_at": "2026-11-30T11:28:10.001Z",
  "updated_at": "2026-11-30T11:28:10.001Z",
  "decided_at": "2026-11-30T11:28:10.001Z",
  "decided_by": "00000000-0000-0000-0000-000000000000",
  "events": {},
  "reason": "",
  "status": "pending",
  "total_after": 0,
  "total_before": 0,
  "type": "cancellation"
}
Including related resources
curl "https://api.bookingmood.com/v1/booking_change_requests?limit=10&select=*,bookings(*),organizations(*)" \
  -H "Authorization: Bearer YOUR_API_KEY"

List booking change requests

Requiresbookings:read

Filters

idFilter<uuid>

Unique identifier

booking_idFilter<uuid>
bookings.id

Identifier of the related booking

organization_idFilter<uuid>
organizations.id

Identifier of the related organization

created_atFilter<timestamp with time zone>

Creation timestamp

updated_atFilter<timestamp with time zone>

Last modification timestamp

decided_atFilter<timestamp with time zone | null>

When the request was approved, rejected or withdrawn

decided_byFilter<uuid | null>

Identifier of the user who approved or rejected the request, if a user did

eventsFilter<Array<BookingChangeRequestEvent>>

The requested state of each calendar event of the booking: unit, dates, occupancy and booking form values. Empty for a cancellation

reasonFilter<text | null>

Why the host rejected the request, shown to the guest

statusFilter<BookingChangeRequestStatus>

Status of the request: pending, approved, rejected or withdrawn by the guest

total_afterFilter<int64>

Total of the booking with the requested changes, in cents. 0 for a cancellation

total_beforeFilter<int64>

Total of the booking when the request was made, in cents

typeFilter<BookingChangeRequestType>

What the guest requested: change (other dates, unit, occupancy or options) or cancellation

Responses

200

A list of booking change requests with the selected columns

206

Partial Content

400

The request is malformed, for example an unknown column or an invalid filter.

401

The API key is missing or invalid.

403

The API key or access token doesn't have the scope this request needs.

429

The API key made more requests per minute than its rate limit allows. Retry after the number of seconds in the `Retry-After` header.

Error responses have a JSON body with a code, message, details and hint. See the introduction for more on errors.
GET/booking_change_requests
curl "https://api.bookingmood.com/v1/booking_change_requests?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
Example
JSON
[
  {
    "id": "00000000-0000-0000-0000-000000000000",
    "booking_id": "00000000-0000-0000-0000-000000000000",
    "organization_id": "00000000-0000-0000-0000-000000000000",
    "created_at": "2026-11-30T11:28:10.001Z",
    "updated_at": "2026-11-30T11:28:10.001Z",
    "decided_at": "2026-11-30T11:28:10.001Z",
    "decided_by": "00000000-0000-0000-0000-000000000000",
    "events": {},
    "reason": "",
    "status": "pending",
    "total_after": 0,
    "total_before": 0,
    "type": "cancellation"
  }
]