endpoints.ts module provides type-safe methods for all Zenoti REST API endpoints. Each function is a thin wrapper around zenotiRequest() that handles URL construction and parameter serialization.
Centers (Locations)
listCenters()
List all centers (locations) in the organization.
Array of center objects with full details (address, timezone, rooms, etc.)
getCenter()
Get details for a single center.
Zenoti center ID
Full center details
Services
listServices()
List all services offered at a specific center.
Zenoti center ID
Array of services with pricing, duration, and category
getService()
Get a single service’s details.
Zenoti center ID
Zenoti service ID
Full service details
Guests (Clients)
searchGuests()
Search guests at a center with text query and pagination.
Search parameters object
Center ID to search within
Text search on name, email, or phone
Page number (1-indexed)
Results per page (max 200)
Array of guest profiles
getGuest()
Get a single guest’s full profile.
Zenoti guest ID
Complete guest profile with personal info, loyalty points, visit history
listGuestAppointments()
List past and upcoming appointments for a guest.
Zenoti guest ID
ISO date (YYYY-MM-DD) — filter appointments after this date
ISO date (YYYY-MM-DD) — filter appointments before this date
Page number
Results per page
Array of appointments
Appointments
listAppointments()
List appointments for a center within a date range. Primary endpoint for the EIP scheduling dashboard.
Query parameters object
Center ID to fetch appointments for
ISO date (YYYY-MM-DD) — start of date range
ISO date (YYYY-MM-DD) — end of date range
Filter by status code:
0= Booked1= Confirmed2= Checked-in4= Completed10= No-show-1= Cancelled
Page number
Results per page (max 200)
Array of appointments with full details
getAppointment()
Get a single appointment’s full details.
Zenoti appointment ID
Full appointment details
listAppointmentsAllCenters()
Fetch appointments across all centers for a date range. Used by EIP dashboard when locationFilter === 'all'.
ISO date (YYYY-MM-DD)
ISO date (YYYY-MM-DD)
Flattened array of appointments from all centers
Invoices & Revenue
getInvoice()
Retrieve full invoice details including line items, payments, and taxes.
Zenoti invoice ID
Complete invoice with items, payments, tax, and tips
listCollections()
Revenue collections for a center over a date range.
Query parameters
Center ID
ISO date (YYYY-MM-DD)
ISO date (YYYY-MM-DD)
Daily revenue summaries with breakdowns by service, product, membership, etc.
Employees / Providers
listEmployees()
List employees at a center.
Center ID
Page number
Results per page
Array of employee profiles
getEmployeePerformance()
Get employee performance metrics for a date range.
Center ID
ISO date (YYYY-MM-DD)
ISO date (YYYY-MM-DD)
Performance metrics including:
- Total/completed/cancelled/no-show appointments
- Total revenue and average ticket
- Utilization rate
- Rebooking rate
getEmployeeSales()
Get employee sales data (same interface as getEmployeePerformance()).
Sales Reports
getSalesReport()
Aggregated sales report for a center. Powers the EIP Revenue Scorecard and DailyMetrics.
Query parameters
Center ID
ISO date (YYYY-MM-DD)
ISO date (YYYY-MM-DD)
Sales report with:
- Period summary (total revenue, bookings, avg ticket, etc.)
- Daily breakdown (revenue, bookings, no-shows per day)
getSalesReportsAllCenters()
Fetch daily sales reports across all centers for a date range. Powers the “all locations” aggregate view in the dashboard.
ISO date (YYYY-MM-DD)
ISO date (YYYY-MM-DD)
Array of sales reports (one per center)
Type Reference
All endpoint methods return Zenoti API response types. Type definitions are available in the source code atsrc/integrations/zenoti/types.ts:
ZenotiCenterZenotiServiceZenotiGuestZenotiAppointmentZenotiInvoiceZenotiCollectionZenotiEmployeeZenotiEmployeePerformanceZenotiSalesReport
Data Mapping
To transform Zenoti types into EIP domain models, use the Data Mappers:Related
Data Mappers
Transform Zenoti responses to EIP types
React Hooks
Query hooks with automatic caching
HTTP Client
Low-level request function