GET api/users/me
Returns the authenticated user's profile and current account balance.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
The current user and account information.
CurrentUserResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
User identifier. |
integer |
None. |
| Username |
Username (primary email address). |
string |
None. |
| FullName |
User's full name. |
string |
None. |
| IdentityNumber |
User's identity number. |
string |
None. |
| AccountId |
Identifier of the account to which the user belongs. |
integer |
None. |
| AccountType |
Account type. |
AccountTypeId |
None. |
| Balance |
Current account balance, or null if unavailable. |
decimal number |
None. |
| Currency |
Currency of the account balance. |
Currency |
None. |
| EmailVerified |
Whether the user's primary email address has been verified. |
boolean |
None. |
| RegistrationApproved |
Whether user registration has been approved. |
boolean |
None. |
| Language |
User's preferred language. |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"UserId": 1,
"Username": "sample string 2",
"FullName": "sample string 3",
"IdentityNumber": "sample string 4",
"AccountId": 5,
"AccountType": "None",
"Balance": 1.0,
"Currency": "None",
"EmailVerified": true,
"RegistrationApproved": true,
"Language": "sample string 8"
}
application/xml, text/xml
Sample:
<CurrentUserResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PuntoNeutro.WebApi.Models"> <AccountId>5</AccountId> <AccountType>None</AccountType> <Balance>1</Balance> <Currency>None</Currency> <EmailVerified>true</EmailVerified> <FullName>sample string 3</FullName> <IdentityNumber>sample string 4</IdentityNumber> <Language>sample string 8</Language> <RegistrationApproved>true</RegistrationApproved> <UserId>1</UserId> <Username>sample string 2</Username> </CurrentUserResponse>