cust_…) represents a logged-in shopper.
It’s scoped to one customer within one merchant; you cannot use a
customer token across merchants.
Get one
POST /api/storefront/customer/register.
Use it
Customer tokens go in theAuthorization header alongside the
storefront token. The merchant-tier token identifies the tenant; the
customer token identifies the shopper within that tenant.
What it permits
Lifetime
Customer tokens are short-lived (default: 24 hours) and renewable viaPOST /api/storefront/customer/token/renew. Renewal rotates the value
and extends the expiry; the old value is revoked immediately.
Revocation
Three paths:- Customer logs out —
POST /customer/logoutrevokes the current token. - Customer revokes a session — from the dashboard’s “Active sessions” panel (Phase 3-A).
- Merchant revokes a session — same panel, merchant-side.
Account lockout
After repeated failed login attempts the account locks. The dashboard’s customer detail page shows lockout state; the Reset failures button clears it.Recovery flow
202 whether or not the email exists —
ghost-account probing is not possible.