UUID Use Case

UUID Invoice ID

An invoice is a financial document tied to one or more orders. A UUID id makes it uniquely addressable and joinable.

JoinableTamper-evidentv4

Generated locally with the Web Crypto API — nothing leaves your browser.

What Is UUID Invoice ID?

How to generate

  1. Mint a v4 UUID when the invoice is created.
  2. Store line-item references to order UUIDs.
  3. Render the UUID in the PDF's metadata, show the serial on the page.

Use Cases

Code Examples

JavaScript
const id = crypto.randomUUID();
Python
import uuid
id = uuid.uuid4()

Frequently Asked Questions

Invoice UUID vs invoice number?
UUID is the system key; the number is the legal reference. Keep both.
Put the UUID on the printable invoice?
In metadata, not prominently — customers expect the human number.

Related tools