Invoices

Issues gapless numbered invoices and credit notes for ecommerce orders

Community 1 204/wk MIT v1.0.2

Installation

pnpm add payload-invoices

About

This plugin issues numbered invoices and credit notes for orders placed through the Payload ecommerce plugin. Numbers run in a gapless sequence per series and year, and each number is claimed in the same database transaction that saves the document, so a failed save does not leave a hole in the count.

Each invoice keeps a frozen copy of the order as it stood when the invoice was issued, including line prices, the tax split, seller details and the buyer's address. A later price change does not alter a document that has already gone out. Amounts are stored as whole minor units, and tax is split from the gross total so the net and tax parts always add up to the total.

Each invoice can be downloaded as a PDF.

Package info

Package name
payload-invoices
Latest version
1.0.2
Unpacked size
77 kB
License
MIT
Weekly downloads
204
Last publish
Nov 17, 2026

More from Poseidonas

View profile

Coupon codes with percentage and fixed discounts for Payload ecommerce carts

Sells digital products with signed download links that expire and stop on refund

Adds order states, status history, internal notes and tracking to orders

Sends transactional emails when orders are created or change status

Sequential, human readable order numbers that stay unique under concurrency

Records full and partial refunds per order line, with optional restock and audit trail

Similar plugins

More in Commerce

Syncs Payload collections with Stripe customers and products, and handles Stripe webhooks

Adds products, carts, orders and Stripe checkout collections to Payload