This page covers two endpoints that operate on the currently authenticated merchant’s own account: one to retrieve your profile and one to change your password. Both require a valid Bearer token or API key.Documentation Index
Fetch the complete documentation index at: https://docs.dubupay.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /auth/me
Fetch the full profile for the authenticated merchant. Use this endpoint to display account information in your dashboard, check KYC status, or confirm account state at any point in your session.Endpoint
Authorization: Bearer <access_token> or X-Api-Key: <key>.
Response
HTTP200 OK on success.
true when the profile was retrieved successfully.The merchant profile object.
Example
PATCH /auth/me/password
Change the password on your merchant account. You must supply the correct current password — the API verifies it before applying the change. After a successful password change, all existing refresh tokens for your account are immediately revoked. You will need to log in again to obtain new tokens.Endpoint
Authorization: Bearer <access_token> or X-Api-Key: <key>.
Request body
Your current account password. The API verifies this against the stored hash before making any changes.
The new password you want to set. Must be at least 8 characters.
Response
HTTP200 OK on success.
true when the password was changed successfully.Confirmation message:
"Password changed successfully".Example
After changing your password
Your current refresh token is revoked immediately. You must callPOST /auth/login with your new password to obtain a fresh token pair. Any other devices or sessions using the old refresh token will also be signed out.
Error responses
| Endpoint | Status | Code | Description |
|---|---|---|---|
| Both | 401 | UNAUTHORIZED | No valid token or API key provided. |
PATCH /me/password | 400 | WRONG_PASSWORD | current_password is incorrect. |
PATCH /me/password | 400 | Validation error | new_password is missing or fewer than 8 characters. |
| Both | 404 | NOT_FOUND | The merchant account was not found (should not occur in normal usage). |