Skip to content

GET /users/by-id

Description

This endpoint allows a user to get a user by id

TIP

user authentication is required to access this information.

Parameters

NameTypeDescriptionRequired
user_idstringuser_idYes

Response

json
{
  "status": 200,
  "data": {
    "user_id": "123e4567-e89b-12d3-a456-426614174000",
    "address": "1234 Elm Street, Apt 567",
    "barrio": "Centro",
    "city": 1,
    "country": 1,
    "date": "2024-08-06",
    "document": "ABC123456",
    "documentType": "passport",
    "email": "user@example.com",
    "lastName": "Doe",
    "name": "John",
    "password": "$2b$10$e8UxZx7Hy/9F0ySnip9UNupfiFsc0vU1ZNmBEX5kftBKVQ1yfZR3S", // Hash de ejemplo
    "phoneNumber": "+1234567890",
    "state": 1,
    "verified": 1,
    "active": 1,
    "photo": "https://example.com/photos/user.jpg",
    "phone_code": "+1",
    "firebase_tk": "firebase_token_example",
    "type": "regular",
    "lastLogin": "2024-08-05T12:34:56.789Z",
    "registrationIp": "192.168.1.1",
    "emailVerified": true,
    "verificationDate": "2024-08-01T08:30:00.000Z",
    "lastActivity": "2024-08-05T12:34:56.789Z",
    "accountStatus": "active",
    "phoneVerified": true,
    "phoneVerificationDate": "2024-08-02T14:45:00.000Z",
    "cash_amount": 150,
    "card_amount": 300
  }
}

Released under the MIT License.