# Booking change requests

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

Endpoint: `https://api.bookingmood.com/v1/booking_change_requests`, supporting `GET`. Authenticate with the header `Authorization: Bearer YOUR_API_KEY` (see [authentication](https://www.bookingmood.com/en-US/api-reference/authentication.md)).

## The booking change request object

| Attribute | Type | Description |
| --- | --- | --- |
| `id` | `uuid` | Unique identifier. |
| `booking_id` | `uuid` | Identifier of the related booking. References [`bookings.id`](https://www.bookingmood.com/en-US/api-reference/bookings.md). |
| `organization_id` | `uuid` | Identifier of the related organization. References [`organizations.id`](https://www.bookingmood.com/en-US/api-reference/organizations.md). |
| `created_at` | `timestamp with time zone` | Creation timestamp. Read-only: set by the database. |
| `updated_at` | `timestamp with time zone` | Last modification timestamp. Read-only: set by the database. |
| `decided_at` | `timestamp with time zone \| null` | When the request was approved, rejected or withdrawn. |
| `decided_by` | `uuid \| null` | Identifier of the user who approved or rejected the request, if a user did. |
| `events` | `Array<BookingChangeRequestEvent>` | The requested state of each calendar event of the booking: unit, dates, occupancy and booking form values. Empty for a cancellation. |
| `reason` | `text \| null` | Why the host rejected the request, shown to the guest. |
| `status` | `BookingChangeRequestStatus` | Status of the request: `pending`, `approved`, `rejected` or `withdrawn` by the guest. |
| `total_after` | `int64` | Total of the booking with the requested changes, in cents. 0 for a cancellation. |
| `total_before` | `int64` | Total of the booking when the request was made, in cents. |
| `type` | `BookingChangeRequestType` | What the guest requested: `change` (other dates, unit, occupancy or options) or `cancellation`. |

```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:53:46.065Z",
  "updated_at": "2026-11-30T11:53:46.065Z",
  "decided_at": "2026-11-30T11:53:46.065Z",
  "decided_by": "00000000-0000-0000-0000-000000000000",
  "events": {},
  "reason": "",
  "status": "pending",
  "total_after": 0,
  "total_before": 0,
  "type": "cancellation"
}
```

### Types

```typescript
type BookingChangeRequestEvent = {
  calendar_event_id: string;
  end_date: string;
  form_values: Record<string, string | number | boolean | null | Record<string, string | null>>;
  occupancy: Record<string, integer>;
  product_id: string;
  start_date: string;
};

type BookingChangeRequestStatus = "approved" | "pending" | "rejected" | "withdrawn";

type BookingChangeRequestType = "cancellation" | "change";
```

### Related resources

Embed related resources with the [`select` parameter](https://www.bookingmood.com/en-US/api-reference/selecting.md), e.g. `select=*,bookings(*)`. Resources related through more than one column need the column as a hint, like `table!column(*)`.

| Embed | Type | Description |
| --- | --- | --- |
| `bookings(*)` | `object \| null` | The [booking](https://www.bookingmood.com/en-US/api-reference/bookings.md) referenced by `booking_id`. |
| `organizations(*)` | `object \| null` | The [organization](https://www.bookingmood.com/en-US/api-reference/organizations.md) referenced by `organization_id`. |

## List booking change requests

`GET /v1/booking_change_requests` · requires the `bookings:read` scope

Filter on any attribute with `column=operator.value` (see [filtering](https://www.bookingmood.com/en-US/api-reference/filtering.md)). Choose columns and embed related resources with `select` (see [selecting](https://www.bookingmood.com/en-US/api-reference/selecting.md)), and sort and paginate with `order`, `limit` and `offset` (see [sorting and pagination](https://www.bookingmood.com/en-US/api-reference/sorting-pagination.md)).

```bash
curl "https://api.bookingmood.com/v1/booking_change_requests?select=*&limit=10" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

Responses:

- `200`: A list of booking change requests with the selected columns. `206` when the list is a partial range.
- `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.

Errors have a JSON body with a `code`, `message`, `details` and `hint`. See the [introduction](https://www.bookingmood.com/en-US/api-reference.md) for more on errors. The full API is described by the OpenAPI spec at https://api.bookingmood.com/v1/openapi.json.
