> ## Documentation Index
> Fetch the complete documentation index at: https://learn.nexudus.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancelled Bookings

> Returns cancelled bookings for the authenticated customer.

# Cancelled Bookings

Returns the list of cancelled bookings for the authenticated customer. Used to show booking history including cancellations.

## Authentication

Requires a valid customer bearer token.

## Query Parameters

<ParamField query="_shape" type="string">
  Comma-separated list of field paths to include in the response. When provided, only the
  specified fields are returned — useful for reducing payload size. Supports nested paths
  using dot notation. Example: `_shape=Records.ResourceName,Records.FromTime,Records.ToTime`.
</ParamField>

## Response

Returns a `MyBookings` object (`ApiListResult<Booking>`) — a paginated wrapper containing an array of cancelled booking records.

<ResponseField name="Records" type="Booking[]">
  Array of cancelled booking objects for the current page.
</ResponseField>

<ResponseField name="CurrentPage" type="number">
  Current page number (1-based).
</ResponseField>

<ResponseField name="TotalItems" type="number">
  Total number of cancelled bookings.
</ResponseField>

<ResponseField name="TotalPages" type="number">
  Total number of pages.
</ResponseField>

<ResponseField name="HasNextPage" type="boolean">
  Whether there are more pages after the current one.
</ResponseField>

<ResponseField name="HasPreviousPage" type="boolean">
  Whether there are pages before the current one.
</ResponseField>

## Examples

### Fetch cancelled bookings

```http theme={null}
GET /api/public/bookings/cancelled
Authorization: Bearer {token}
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'
import { MyBookings } from '@/types/endpoints/MyBookings'
import { useData } from '@/api/fetchData'

const { resource: data } = useData<MyBookings>(httpClient, endpoints.bookings.cancelled)
```
