List Bookings
Bookings
List Bookings
Retrieves a paginated list of all bookings with filtering and search options.
GET
List Bookings
Description
This endpoint allows you to retrieve a list of all bookings in your LatePoint system. It includes advanced filtering, search, and pagination options to efficiently handle large volumes of data.Authentication
Your LatePoint API key. You can get it from the admin panel.
Query Parameters
Pagination
Page number for pagination
Number of bookings per page (max 100)
Basic Filters
Filter by booking status (pending, confirmed, cancelled, completed)
Filter by customer ID
Filter by agent ID
Filter by service ID
Filter by location ID
Date Filters
Filter bookings from this date (YYYY-MM-DD format)
Filter bookings until this date (YYYY-MM-DD format)
Filter by creation date from (YYYY-MM-DD format)
Filter by creation date until (YYYY-MM-DD format)
Dynamic Filters
Filter by booking code (partial match supported)
Filter by payment status
Filter bookings with minimum duration (in minutes)
Filter bookings with maximum duration (in minutes)
Filter bookings with minimum price
Filter bookings with maximum price
Filter by customer email (partial match supported)
Filter by customer phone (partial match supported)
Metadata Filters
Include booking metadata in response
Filter by specific metadata key (requires meta_value)
Filter by metadata value (requires meta_key, partial match supported)
Search and Sorting
Search in customer name, email, or booking code
Sort field (start_date, created_at, customer_name, status, id)
Sort order (asc, desc)
Response
Always
true on successArray of booking objects
Pagination information
Examples
Basic Request
Filter by Status and Date
Search by Customer Name or Code
Example Response
Error Responses
Error 401 - Unauthorized
Error 503 - LatePoint not available
Important Notes
Performance: For better performance, use specific filters instead of fetching all bookings and filtering on the client side.
