Skip to main content
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.

Endpoint

Request

Headers

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.

Response

boolean
true on a successful profile fetch.
object
The authenticated merchant’s profile.
object
Payment aggregates computed from the merchant’s payment log.
array
The 20 most recent payments, newest first.

Examples

Success Response

Error Responses

Notes

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.