Customers (Admin)
View and manage customer accounts.
Where to find it
Admin: not a dedicated UI yet — managed via:
- Direct DB queries on
commerce__customers - API:
/api/v1/customersendpoints
Customer types
The commerce__customers table holds:
- Regular customers (
role = customer) — from storefront signups - Guest customers (
is_guest = 1) — one-time checkouts - Vendor users (
role = vendor) — portal logins - Admin users (
role = admin) — full access
Customer data
- Email (unique per tenant)
- Name (first + last)
- Phone
- Password hash
- Saved addresses (separate table)
- Orders (linked by
customer_id) - Reviews, wishlist, returns
Merging guests to accounts
When a guest customer later creates an account with the same email, their past orders are automatically linked:
- Match happens on email + tenant_id
customer_idbackfilled on old orders- Guest row remains for audit (with
is_guest = 1)
GDPR
Customer data can be exported or deleted:
- See GDPR Compliance for full process
- Deletions anonymize — they don't remove orders (retained for financial records)
Impersonation
Admins can impersonate a customer to troubleshoot their experience. Impersonation is logged in the audit log.