Skip to main content
A Customer Access Token (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

The same shape is returned by POST /api/storefront/customer/register.

Use it

Customer tokens go in the Authorization 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 via POST /api/storefront/customer/token/renew. Renewal rotates the value and extends the expiry; the old value is revoked immediately.

Revocation

Three paths:
  • Customer logs outPOST /customer/logout revokes 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.
Revocation takes effect on the next request.

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

The recover endpoint returns 202 whether or not the email exists — ghost-account probing is not possible.