Configuration
Full reference for all payloadReserve() plugin options.
Full reference for all payloadReserve() plugin options.
All options are optional — the plugin works with sensible defaults.
Full Config Example
Defaults Table
| Option | Type | Default | Description |
|---|---|---|---|
disabled | boolean | false | Disable plugin functionality |
adminGroup | string | 'Reservations' | Admin panel group label |
defaultBufferTime | number | 0 | Default buffer between bookings (minutes) |
cancellationNoticePeriod | number | 24 | Minimum hours notice for cancellation |
userCollection | string | undefined | Existing auth collection slug to extend |
slugs.services | string | 'services' | Services collection slug |
slugs.resources | string | 'resources' | Resources collection slug |
slugs.schedules | string | 'schedules' | Schedules collection slug |
slugs.reservations | string | 'reservations' | Reservations collection slug |
slugs.customers | string | 'customers' | Customers collection slug |
slugs.media | string | 'media' | Media collection slug (used by image fields) |
statusMachine | Partial<StatusMachineConfig> | Default 5-status machine | Custom status machine (validated at init) |
hooks | ReservationPluginHooks | {} | Plugin hook callbacks |
extraReservationFields | Field[] | [] | Extra Payload fields appended to the Reservations collection |