Skip to main content
GET
/
api
/
public
/
bookings
/
cancelled
{
  "Records": [
    {}
  ],
  "CurrentPage": 123,
  "TotalItems": 123,
  "TotalPages": 123,
  "HasNextPage": true,
  "HasPreviousPage": true
}

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

_shape
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.

Response

Returns a MyBookings object (ApiListResult<Booking>) — a paginated wrapper containing an array of cancelled booking records.
Records
Booking[]
Array of cancelled booking objects for the current page.
CurrentPage
number
Current page number (1-based).
TotalItems
number
Total number of cancelled bookings.
TotalPages
number
Total number of pages.
HasNextPage
boolean
Whether there are more pages after the current one.
HasPreviousPage
boolean
Whether there are pages before the current one.

Examples

Fetch cancelled bookings

GET /api/public/bookings/cancelled
Authorization: Bearer {token}

TypeScript Integration

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)