GET /api/merchant/me — returns the authenticated merchant’s profile, payment KPIs, and their 20 most recent payments.
The profile endpoint returns the currently authenticated merchant’s account details, wallet configuration, aggregate payment statistics, and a list of recent payments. Use it to render the merchant dashboard, show wallet status, and surface a masked API key hint.
This is a browser/dashboard route. Authentication comes from the merchant_token cookie set at login; the browser sends it automatically. An x-api-key header is not accepted here.
The same path also hosts the logout endpoint: DELETE /api/merchant/me clears the merchant_token cookie. See Login.
The full API key is intentionally never returned here. If you lost your key, generate a replacement from the dashboard — the masked apiKeyHint is only for display, not recovery.