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?
- Use the UUID as the internal customer ID; treat email/phone as separate unique attributes that can update.
- This keeps foreign keys intact through every profile edit.
How to generate
- Mint a v4 UUID at customer creation.
- Reference it from orders, subscriptions, tickets.
- Protect it behind auth; never expose in shareable links.
Use Cases
- Billing systems.
- Support desks.
- Marketing profiles.
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
UUID v1 GeneratorUUID v3 GeneratorUUID v4 GeneratorUUID v5 GeneratorUUID v6 GeneratorUUID v7 GeneratorUUID v8 GeneratorBulk UUID GeneratorShort UUID GeneratorUUID ValidatorUUID FormatterUUID as a Primary KeyUUID Database IDUUID Foreign KeyUUID Shard KeyUUID Partition KeyUUID in a Composite KeyUUID Surrogate KeyUUID API KeyUUID Session TokenUUID Access TokenUUID Refresh TokenUUID Idempotency KeyUUID Request IDUUID Correlation IDUUID Trace IDUUID CSRF TokenUUID NonceUUID FilenameUUID Object KeyUUID S3 KeyUUID Upload IDUUID Cache KeyUUID Blob NameUUID Temp FileUUID User IDUUID Account IDUUID Customer IDUUID Device IDUUID Tenant IDUUID Client IDUUID Anonymous IDUUID Member IDUUID Message IDUUID Event IDUUID Job IDUUID Task IDUUID Queue Message IDUUID Transaction IDUUID Order IDUUID Invoice IDUUID Payment IDUUID Reset TokenUUID Verification TokenUUID Invite CodeUUID API SecretUUID Share LinkUUID Magic LinkUUID Node IDUUID Worker IDUUID Lock IDUUID Cluster IDUUID Test DataUUID Seed DataUUID FixtureUUID Mock IDUUID Placeholder IDUUID Sample ID