UUID Use Case

UUID Customer ID

A customer is a long-lived entity. A UUID ID stays fixed even when the email, phone, or name changes.

StablePII-free keyv4

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

What Is UUID Customer ID?

How to generate

  1. Mint a v4 UUID at customer creation.
  2. Reference it from orders, subscriptions, tickets.
  3. Protect it behind auth; never expose in shareable links.

Use Cases

Code Examples

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

Frequently Asked Questions

Should the customer ID be in the URL?
Only on authenticated pages; treat it as sensitive internal state.
What if a customer has two emails?
Store emails as a separate table keyed by customer UUID; the id stays constant.

Related tools