User
Mi perfil
Obtener los datos del usuario autenticado junto con sus transacciones recientes.
GET /user
Retorna los datos del perfil del usuario autenticado y sus 3 transacciones más recientes.
Autenticacion
Bearer Token (Authorization: Bearer {token}).
Request
curl -X GET https://api.qvapay.com/user \
-H "Authorization: Bearer {token}"Response
{
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"username": "juan123",
"name": "Juan",
"lastname": "Perez",
"email": "[email protected]",
"bio": "Hola mundo",
"balance": 150.75,
"satoshis": 0,
"phone": "+5355555555",
"phone_verified": true,
"kyc": true,
"golden_check": false,
"golden_expire": null,
"p2p_enabled": true,
"savings_roundup": false,
"cover": "profiles/uuid/cover.webp",
"image": "profiles/uuid/avatar.webp",
"twitter": "juanperez",
"telegram": "juanperez",
"two_factor_secret": "***",
"average_rating": 0,
"latest_transactions": [
{
"uuid": "txn-uuid",
"amount": 10.00,
"description": "Pago de servicio",
"remote_id": "remote-123",
"status": "paid",
"created_at": "2025-01-01T00:00:00.000Z",
"updated_at": "2025-01-01T00:00:00.000Z",
"logo": "https://example.com/logo.png",
"App": {
"uuid": "app-uuid",
"logo": "https://example.com/logo.png",
"url": "https://example.com",
"name": "Mi App"
},
"User": {
"uuid": "user-uuid",
"username": "juan123",
"name": "Juan",
"lastname": "Perez",
"bio": "Hola",
"kyc": true,
"golden_check": false,
"image": "profiles/uuid/avatar.webp"
},
"PaidBy": {
"uuid": "payer-uuid",
"username": "maria456",
"name": "Maria",
"lastname": "Lopez",
"bio": "Bio",
"kyc": true,
"golden_check": false,
"image": "profiles/uuid/avatar.webp"
}
}
]
}Campos de respuesta
| Campo | Tipo | Descripcion |
|---|---|---|
uuid | string | Identificador unico del usuario |
username | string | Nombre de usuario |
name | string | Nombre |
lastname | string | Apellido |
email | string | Correo electronico |
bio | string | Biografia |
balance | number | Balance actual en USD |
satoshis | number | Balance en satoshis |
phone | string | Numero de telefono |
phone_verified | boolean | Si el telefono esta verificado |
kyc | boolean | Si la verificacion KYC esta aprobada |
golden_check | boolean | Si tiene plan GOLD activo |
golden_expire | string|null | Fecha de expiracion del plan GOLD |
p2p_enabled | boolean | Si tiene habilitado el P2P |
savings_roundup | boolean | Si tiene activo el redondeo automatico a ahorro |
cover | string | Ruta de la imagen de portada |
image | string | Ruta del avatar |
twitter | string | Usuario de Twitter |
telegram | string | Usuario de Telegram |
two_factor_secret | string|null | "***" si tiene 2FA habilitado, null si no |
average_rating | number | Calificacion promedio |
latest_transactions | array | Ultimas 3 transacciones |
Errores
| Codigo | Descripcion |
|---|---|
401 | No autorizado o token invalido |