BetaYou're exploring an early version of tPay365. Features and content may change as we refine the experience.

User & Profile

Manage user profiles, update preferences, change passwords, and handle account deletion. Profile data is stored with PII isolation — sensitive fields are vault references.

/api/v1/users

Endpoints

GET
/api/v1/users/me

Get current user profile with masked PII

PATCH
/api/v1/users/me

Update profile fields (name, preferences)

POST
/api/v1/users/me/change-password

Change account password

DELETE
/api/v1/users/me

Delete account and trigger GDPR erasure

Parameters

ParameterTypeRequiredDescription
display_namestringOptionalUser display name (max 100 chars)
notification_preferencesobjectOptionalEmail and push notification settings
current_passwordstringRequiredRequired for password change
new_passwordstringRequiredNew password (min 12 characters)

Example

Request
http
PATCH /api/v1/users/me HTTP/1.1
Host: api.tpay365.com
Authorization: Bearer eyJhbGciOiJIUzI1NiIs...
Content-Type: application/json

{
  "display_name": "Alice Smith",
  "notification_preferences": {
    "email": true,
    "push": false
  }
}
Response
json
{
  "id": "usr_8821-9920",
  "display_name": "Alice Smith",
  "email_masked": "al****@example.com",
  "role": "employee",
  "notification_preferences": {
    "email": true,
    "push": false
  },
  "updated_at": "2026-02-10T14:30:00Z"
}