Order Numbers

Sequential, human readable order numbers that stay unique under concurrency

Community 1 180/wk MIT v1.0.2

Installation

pnpm add payload-order-numbers

About

Order Numbers gives each order in a Payload shop a short reference such as ORD-01042 that a customer and a shop can read out loud. Numbers are handed out in sequence, and two orders placed at the same moment do not receive the same number. It works with the official ecommerce plugin and with any collection that holds orders.

You set the text before and after the number, the zero padding and the first value of the sequence. Orders created before the plugin was added keep an empty number. PostgreSQL sites need a larger database connection pool when many orders arrive at the same instant.

Package info

Package name
payload-order-numbers
Latest version
1.0.2
Unpacked size
16 kB
License
MIT
Weekly downloads
180
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

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

Customer product reviews with verified purchase badges and moderated star ratings

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