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 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
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.
Array of cancelled booking objects for the current page.
Current page number (1-based).
Total number of cancelled bookings.
Whether there are more pages after the current one.
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)