
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
payload-clienthub
Advanced tools
Payload CMS plugin for client management, service tracking, and invoicing.
Automatic monthly invoicing with PDF generation, Swiss QR Bill support, and multi-language email delivery for Payload CMS.
payload-clienthub adds a full invoicing workflow to Payload -- clients, services, and invoices are managed as collections. Recurring services are automatically detected when due, rendered as localized PDF invoices (with Swiss QR Bill support), and emailed to each client. A single endpoint processes all clients at once, so you can wire it up to a scheduler and forget about it.
Features
pnpm add payload-clienthub
// payload.config.ts
import { buildConfig } from 'payload';
import { clienthubPlugin } from 'payload-clienthub';
export default buildConfig({
// ...
plugins: [
clienthubPlugin({
cronSecret: process.env.CRON_SECRET!,
}),
],
});
Trigger invoice generation for all clients by calling the batch endpoint (e.g. from a monthly scheduler):
curl -H "Authorization: Bearer $CRON_SECRET" \
https://your-app.com/api/plugin-invoices/process-all-clients
| Option | Type | Default | Description |
|---|---|---|---|
cronSecret | string | — | Required. Shared secret used to authenticate batch requests via the Authorization: Bearer header. |
clientsCollectionSlug | CollectionSlug | 'clients' | Slug for the auto-created clients collection. |
servicesCollectionSlug | CollectionSlug | 'services' | Slug for the auto-created services collection. |
invoicesCollectionSlug | CollectionSlug | 'invoices' | Slug for the auto-created invoices collection. |
invoicePdfsCollectionSlug | CollectionSlug | 'invoice-pdfs' | Slug for the auto-created invoice PDFs upload collection. |
onError | (error: Error, context: { operation: string; metadata?: Record<string, unknown> }) => void | console.error | Custom error handler called when PDF generation or email delivery fails. |
This plugin lives in the payload-plugins monorepo.
pnpm install
# watch this plugin for changes
pnpm --filter payload-clienthub dev
# run the Payload dev app (in a second terminal)
pnpm --filter sandbox dev
The sandbox/ directory is a Next.js + Payload app that imports plugins via workspace:* — use it to test changes locally.
fix(payload-clienthub): ...).pnpm release.Bug reports and feature requests are welcome — open an issue.
MIT
FAQs
Payload CMS plugin for client management, service tracking, and invoicing.
We found that payload-clienthub demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.