Adds collections for appointments, services, team members, guest customers, waitlist and sent emails, plus an opening times global. It includes an availability engine, an admin schedule calendar and an analytics dashboard. Customer emails, payment webhooks and Jobs Queue tasks are built in. Requires Payload 3.37 or newer, an email adapter and extra fields on the users collection.
Appointment scheduling for Payload CMS: bookings, services, team members, availability, waitlist, payments, emails, iCal feeds, and an admin calendar + analytics.
Installation
npm i payload-appointments-plugin102
Stars
9
Forks
7
Open Issues
3 months ago
Last Updated
39
Weekly Downloads
v3.0.0
npm Version
196.5 KB
Unpacked Size
9
Dependencies
102+5 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 102 |
| Dec 4, 2026 | 102 |
| Dec 3, 2026 | 102 |
| Dec 2, 2026 | 102 |
| Dec 1, 2026 | 102 |
| Nov 30, 2026 | 102 |
| Nov 29, 2026 | 102 |
| Nov 28, 2026 | 102 |
| Nov 27, 2026 | 102 |
| Nov 26, 2026 | 102 |
| Nov 25, 2026 | 102 |
| Nov 24, 2026 | 102 |
| Nov 23, 2026 | 102 |
| Nov 22, 2026 | 102 |
| Nov 21, 2026 | 102 |
| Nov 20, 2026 | 102 |
| Nov 19, 2026 | 102 |
| Nov 18, 2026 | 102 |
| Nov 17, 2026 | 102 |
| Nov 16, 2026 | 102 |
| Nov 15, 2026 | 102 |
| Nov 14, 2026 | 102 |
| Nov 13, 2026 | 102 |
| Nov 12, 2026 | 102 |
| Nov 11, 2026 | 102 |
| Nov 10, 2026 | 102 |
| Nov 9, 2026 | 102 |
| Nov 8, 2026 | 102 |
| Nov 7, 2026 | 102 |
| Nov 6, 2026 | 102 |
| Nov 5, 2026 | 102 |
| Nov 4, 2026 | 102 |
| Nov 3, 2026 | 101 |
| Nov 2, 2026 | 101 |
| Nov 1, 2026 | 101 |
| Oct 31, 2026 | 101 |
| Oct 30, 2026 | 101 |
| Oct 29, 2026 | 101 |
| Oct 28, 2026 | 101 |
| Oct 27, 2026 | 101 |
| Oct 26, 2026 | 101 |
| Oct 25, 2026 | 101 |
| Oct 24, 2026 | 101 |
| Oct 23, 2026 | 101 |
| Oct 22, 2026 | 101 |
| Oct 21, 2026 | 101 |
| Oct 20, 2026 | 101 |
| Oct 19, 2026 | 101 |
| Oct 18, 2026 | 101 |
| Oct 17, 2026 | 101 |
| Oct 16, 2026 | 101 |
| Oct 15, 2026 | 101 |
| Oct 14, 2026 | 101 |
| Oct 13, 2026 | 101 |
| Oct 12, 2026 | 101 |
| Oct 11, 2026 | 101 |
| Oct 10, 2026 | 101 |
| Oct 9, 2026 | 101 |
| Oct 8, 2026 | 101 |
| Oct 7, 2026 | 101 |
| Oct 6, 2026 | 101 |
| Oct 5, 2026 | 101 |
| Oct 4, 2026 | 101 |
| Oct 3, 2026 | 101 |
| Oct 2, 2026 | 101 |
| Oct 1, 2026 | 101 |
| Sep 30, 2026 | 101 |
| Sep 29, 2026 | 101 |
| Sep 28, 2026 | 101 |
| Sep 27, 2026 | 101 |
| Sep 26, 2026 | 101 |
| Sep 25, 2026 | 101 |
| Sep 24, 2026 | 101 |
| Sep 23, 2026 | 101 |
| Sep 22, 2026 | 101 |
| Sep 21, 2026 | 101 |
| Sep 20, 2026 | 101 |
| Sep 19, 2026 | 101 |
| Sep 18, 2026 | 101 |
| Sep 17, 2026 | 100 |
| Sep 16, 2026 | 100 |
| Sep 15, 2026 | 100 |
| Sep 14, 2026 | 100 |
| Sep 13, 2026 | 99 |
| Sep 12, 2026 | 99 |
| Sep 11, 2026 | 99 |
| Sep 10, 2026 | 98 |
| Sep 9, 2026 | 98 |
| Sep 8, 2026 | 97 |
| Sep 7, 2026 | 97 |
| Sep 6, 2026 | 97 |
13−17 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 13 |
| Dec 4, 2026 | 15 |
| Dec 3, 2026 | 12 |
| Dec 2, 2026 | 11 |
| Dec 1, 2026 | 12 |
| Nov 30, 2026 | 14 |
| Nov 29, 2026 | 20 |
| Nov 28, 2026 | 29 |
| Nov 27, 2026 | 47 |
| Nov 26, 2026 | 71 |
| Nov 25, 2026 | 81 |
| Nov 24, 2026 | 85 |
| Nov 23, 2026 | 83 |
| Nov 22, 2026 | 73 |
| Nov 21, 2026 | 68 |
| Nov 20, 2026 | 51 |
| Nov 19, 2026 | 28 |
| Nov 18, 2026 | 25 |
| Nov 17, 2026 | 22 |
| Nov 16, 2026 | 24 |
| Nov 15, 2026 | 26 |
| Nov 14, 2026 | 22 |
| Nov 13, 2026 | 23 |
| Nov 12, 2026 | 32 |
| Nov 11, 2026 | 24 |
| Nov 10, 2026 | 25 |
| Nov 9, 2026 | 25 |
| Nov 8, 2026 | 22 |
| Nov 7, 2026 | 22 |
| Nov 6, 2026 | 19 |
| Nov 5, 2026 | 9 |
| Nov 4, 2026 | 10 |
| Nov 3, 2026 | 10 |
| Nov 2, 2026 | 10 |
| Nov 1, 2026 | 17 |
| Oct 31, 2026 | 18 |
| Oct 30, 2026 | 20 |
| Oct 29, 2026 | 20 |
| Oct 28, 2026 | 18 |
| Oct 27, 2026 | 50 |
| Oct 26, 2026 | 70 |
| Oct 25, 2026 | 85 |
| Oct 24, 2026 | 103 |
| Oct 23, 2026 | 99 |
| Oct 22, 2026 | 102 |
| Oct 21, 2026 | 108 |
| Oct 20, 2026 | 74 |
| Oct 19, 2026 | 52 |
| Oct 18, 2026 | 29 |
| Oct 17, 2026 | 11 |
| Oct 16, 2026 | 14 |
| Oct 15, 2026 | 14 |
| Oct 14, 2026 | 8 |
| Oct 13, 2026 | 8 |
| Oct 12, 2026 | 9 |
| Oct 11, 2026 | 10 |
| Oct 10, 2026 | 9 |
| Oct 9, 2026 | 11 |
| Oct 8, 2026 | 11 |
| Oct 7, 2026 | 23 |
| Oct 6, 2026 | 31 |
| Oct 5, 2026 | 36 |
| Oct 4, 2026 | 35 |
| Oct 3, 2026 | 35 |
| Oct 2, 2026 | 33 |
| Oct 1, 2026 | 44 |
| Sep 30, 2026 | 37 |
| Sep 29, 2026 | 57 |
| Sep 28, 2026 | 51 |
| Sep 27, 2026 | 54 |
| Sep 26, 2026 | 57 |
| Sep 25, 2026 | 54 |
| Sep 24, 2026 | 40 |
| Sep 23, 2026 | 36 |
| Sep 22, 2026 | 19 |
| Sep 21, 2026 | 20 |
| Sep 20, 2026 | 24 |
| Sep 19, 2026 | 23 |
| Sep 18, 2026 | 23 |
| Sep 17, 2026 | 26 |
| Sep 16, 2026 | 26 |
| Sep 15, 2026 | 14 |
| Sep 14, 2026 | 16 |
| Sep 13, 2026 | 13 |
| Sep 12, 2026 | 13 |
| Sep 11, 2026 | 27 |
| Sep 10, 2026 | 24 |
| Sep 9, 2026 | 28 |
| Sep 8, 2026 | 28 |
| Sep 7, 2026 | 30 |
| Sep 6, 2026 | 30 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/778526499-root)<a href="https://payloaddirectory.dev/plugins/778526499-root"><img src="https://payloaddirectory.dev/badge/778526499-root.svg" alt="Payload Directory"></a>README
[!Warning] This plugin is a WIP and currently testing.
Appointment scheduling for your Payload app:
/admin/appointments/schedule) and analytics dashboard (/admin/appointments/analytics).

npm i payload-appointments-plugin
pnpm add payload-appointments-plugin
yarn add payload-appointments-plugin
import { appointmentsPlugin } from 'payload-appointments-plugin';
export default buildConfig({
// serverURL is used to build cancellation links in customer emails
serverURL: 'https://your-app.com',
plugins: [
appointmentsPlugin({
seedData: false, // seed example services/team members/opening times on init
showDashboardCards: true, // dashboard cards in the admin panel
showNavItems: true, // nav links for schedule + analytics views
webhookSecret: process.env.APPOINTMENTS_WEBHOOK_SECRET, // required for the payment webhook
// paymentHooks: { onPaymentRequired, onPaymentReceived, onRefundRequested },
}),
],
});
The plugin relates appointment customers to your users collection:
const Users: CollectionConfig = {
// ...
fields: [
{ name: 'firstName', type: 'text', label: 'First name' },
{ name: 'lastName', type: 'text', label: 'Last name' },
{
name: 'roles',
type: 'select',
options: [
{ label: 'Admin', value: 'admin' },
{ label: 'Customer', value: 'customer' },
],
},
{
name: 'appointments',
type: 'join',
collection: 'appointments',
on: 'customer',
},
],
};
Customer emails use your app's email adapter. The "from" address is your adapter's defaultFromAddress (or the APPOINTMENT_EMAIL_FROM env var as a fallback).
The plugin registers three Jobs Queue tasks:
appointmentsAutoComplete — marks past appointments as completed.appointmentsExpireWaitlist — expires lapsed waitlist notifications and notifies the next person in line.appointmentsReminder — emails customers whose appointment starts within the next reminderHours (default 24) and hasn't been reminded yet.Queue and run them on a schedule, e.g. with autorun:
export default buildConfig({
jobs: {
autoRun: [{ cron: '*/15 * * * *', queue: 'default' }],
},
onInit: async (payload) => {
await payload.jobs.queue({ task: 'appointmentsAutoComplete', input: {}, queue: 'default' });
await payload.jobs.queue({ task: 'appointmentsExpireWaitlist', input: {}, queue: 'default' });
await payload.jobs.queue({ task: 'appointmentsReminder', input: {}, queue: 'default' });
},
});
(Or trigger payload.jobs.run() from a cron endpoint on serverless hosts.)
| Option | Type | Default | Description |
|---|---|---|---|
collections | object | — | Per-collection overrides, including slug renames (see below). |
globals | object | — | Per-global overrides for openingTimes, including slug. |
adminGroup | string | 'Appointments' | Admin group and nav-section label for all plugin collections/globals. |
endpoints | object | — | Override any API endpoint path (see below). |
views | object | — | Admin view routes and nav labels for the schedule and analytics views. |
jobs | object | — | Override the Jobs Queue task slugs (autoComplete, expireWaitlist, reminder). |
reminderHours | number | 24 | Reminder emails go out when an appointment starts within this many hours. |
rateLimit | object | { max: 60, windowMs: 60000 } | Per-IP limit for public endpoints and unauthenticated creates. { disabled: true } turns it off. In-memory per server instance — pair with an edge/WAF limiter on serverless. |
emails | object | — | Customize outgoing customer emails per type (see below). |
cancelPagePath | string | '/cancel' | Frontend page the emailed cancellation link points at (token appended). |
calendar | object | { dayStartHour: 9, dayEndHour: 19, step: 15 } | Schedule calendar display hours and slot step. |
waitlistExpiryHours | number | 2 | Hours a notified waitlist entry has to book before it expires. |
defaultAppointmentDuration | number | 30 | Fallback appointment length (minutes) when no end time or services are given. |
disabled | boolean | false | Disables endpoints/UI/hooks. Collections stay registered so the schema is stable. |
seedData | boolean | false | Seeds example opening times, services, and team members on init. |
showDashboardCards | boolean | true | Show appointment cards on the admin dashboard. |
showNavItems | boolean | true | Show schedule/analytics links in the admin nav. |
webhookSecret | string | — | HMAC secret for the payment webhook. The webhook rejects all calls without it. |
paymentHooks | PaymentHooks | — | Callbacks to integrate a payment provider (see below). |
Every collection the plugin registers (appointments, guestCustomers, sentEmails,
services, teamMembers, waitlist) and the openingTimes global can be customized:
appointmentsPlugin({
collections: {
// Rename the collection — every internal reference (relationships,
// endpoints, hooks, jobs, admin views) follows the new slug.
appointments: { slug: 'bookings' },
services: {
slug: 'treatments',
// Extend (or replace) the default fields.
fields: ({ defaultFields }) => [...defaultFields, { name: 'color', type: 'text' }],
// Merged one level deep with the defaults.
access: { read: () => true },
admin: { group: 'Booking' },
// Appended after the plugin's own hooks, never replacing them.
hooks: { afterChange: [myHook] },
},
},
globals: {
openingTimes: { slug: 'businessHours' },
},
});
Override semantics:
slug renames the collection/global; all internal references follow it.access and admin are merged one level deep with the plugin defaults.hooks are appended after the plugin's own hooks (the plugin's booking logic
keeps working).fields is a function receiving { defaultFields } and returning the final
field array.Customer relationships point at your auth collection: the plugin reads
config.admin.user (default users), so no option is needed for that.
Everything structural is overridable — endpoint paths, admin view routes and labels, the admin group, job slugs, and scheduling tunables:
appointmentsPlugin({
adminGroup: 'Bookings',
endpoints: {
availableSlots: '/slots',
analytics: '/booking-analytics',
// ...any of: cancelAppointment, appointmentByToken, cancelAppointmentByToken,
// paymentWebhook, updateRecurring, cancelRecurring, icalFeed,
// waitlistJoin, waitlistLeave, waitlistPosition
},
views: {
schedule: { path: '/bookings/calendar', label: 'Calendar' },
analytics: { path: '/bookings/analytics', label: 'Insights' },
},
jobs: { autoComplete: 'bookingsAutoComplete', expireWaitlist: 'bookingsExpireWaitlist' },
cancelPagePath: '/cancel-booking',
calendar: { dayStartHour: 8, dayEndHour: 20, step: 30 },
waitlistExpiryHours: 4,
defaultAppointmentDuration: 45,
});
Resolved settings are readable at runtime via getSettings(payload.config)
(exported from the plugin).
Customize the subject, plain text, and/or HTML of each customer email type
(created, updated, cancelled, reminder) without giving up the built-in
sending/logging pipeline:
appointmentsPlugin({
emails: {
created: {
subject: ({ appointment }) => `See you soon, ${appointment.customer?.firstName}!`,
html: async ({ appointment, cancelUrl, timezone }) => renderMyEmail({ appointment, cancelUrl, timezone }),
},
cancelled: { subject: 'Your booking was cancelled' },
// 'updated' keeps the defaults
},
});
appointmentsPlugin({
webhookSecret: process.env.APPOINTMENTS_WEBHOOK_SECRET,
paymentHooks: {
// Called after an appointment that requires payment is created.
// Return the provider's payment id (stored as payment.externalPaymentId).
onPaymentRequired: async (appointment) => {
const session = await stripe.checkout.sessions.create(/* ... */);
return { paymentUrl: session.url, paymentId: session.id };
},
onPaymentReceived: async (appointment, paymentData) => {
/* fulfil, notify, etc. */
},
onRefundRequested: async (appointment) => {
/* refund with your provider */
},
},
});
All endpoints are mounted under your API route (default /api).
| Method | Path | Auth | Description |
|---|---|---|---|
GET | /get-available-appointment-slots | Public | Available slots. Query: services (comma-separated ids, required), day (required), host (optional). Returns { availableSlots, filteredSlots, bookingWindow, slotDuration, bufferTime }. |
GET | /appointment-by-token | Cancellation token | Minimal appointment details for the cancellation page. Query: token. |
POST | /cancel-appointment-by-token | Cancellation token | Cancels the appointment for that token. Query: token. |
POST | /cancel-appointment | Authenticated user | Cancels an appointment by id. Query: id. |
PUT | /update-recurring-appointment | Authenticated user | Body: { appointmentId, updateType: 'single'|'all'|'future', data }. Only start, end, services, host, customerNotes, internalNotes, status are updatable. |
POST | /cancel-recurring-appointment | Authenticated user | Body: { appointmentId, cancelType: 'single'|'all'|'future' }. |
GET | /appointments-analytics | Authenticated user | Analytics data. Query: startDate, endDate, granularity (day|week|month). |
POST | /appointments-payment-webhook | HMAC signature | See below. |
GET | /appointments-ical | iCal feed token | iCal feed for the token's team member. Query: token, months (default 3, max 24). |
POST | /waitlist/join | Public | Body: { serviceId, hostId?, customerId?, guestCustomerId?, preferredDates?, preferredTimeRange?, notes? }. |
GET | /waitlist/position | Public (by entry id) | Query: id. Returns position in line. |
DELETE | /waitlist/leave | Authenticated user | Query: id. |
POST /api/appointments-payment-webhook requires an HMAC-SHA256 signature of the raw request body using your webhookSecret, sent in the x-appointments-signature header (hex):
import crypto from 'crypto';
const body = JSON.stringify({
appointmentId: '42',
paymentId: 'pay_123',
status: 'success', // 'success' | 'failed' | 'refunded' | 'partial-refund'
amountPaid: 50,
// refundAmount: 25, // for partial-refund
});
const signature = crypto.createHmac('sha256', process.env.APPOINTMENTS_WEBHOOK_SECRET).update(body).digest('hex');
await fetch('https://your-app.com/api/appointments-payment-webhook', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-appointments-signature': signature },
body,
});
Payment status transitions use the appointment's payment.amountDue (deposit) and payment.totalPrice: paying at least the deposit → deposit-paid, the full price → paid.
Each team member gets an auto-generated icalToken (visible to authenticated users in the admin panel). Subscribe from any calendar app:
https://your-app.com/api/appointments-ical?token=<icalToken>
| Variable | Purpose |
|---|---|
APPOINTMENTS_WEBHOOK_SECRET | Suggested env var to pass as webhookSecret. |
APPOINTMENT_EMAIL_FROM | Fallback "from" address when the email adapter has no default. |
pnpm install
pnpm dev # dev app in ./dev (needs DATABASE_URI + PAYLOAD_SECRET)
pnpm test # vitest unit tests
pnpm lint
pnpm build
Contributions welcome.
payload reserve
Reservation and booking system with conflict detection, status workflows and a calendar admin UI
82730/wk45v3
payload plugin shipping
Shipping addresses, carrier rates, labels, label refunds and tracking webhooks for Payload, with EasyPost as provider
75221/wk0v3
payload plugin gmc ecommerce
Publish Payload products to Google Merchant Center through durable queued commands and optional TSV feeds
7068/wk6v3
payload abandoned cart
Marks idle ecommerce carts abandoned, sends recovery emails, and attributes the orders that come back
6915/wk1v3
payload plugin printify
Printify print-on-demand integration for Payload's ecommerce plugin with product sync and order fulfillment
66378/wk1v3
payload booking
Appointment booking with database-enforced slot uniqueness, magic-link cancellation and ready-made React booking…
547/wk0v3