The Accounts Service exposes several read endpoints for inspecting digital wallet data. The primary endpoint,Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Gianluca-X/DigitalMoney/llms.txt
Use this file to discover all available pages before exploring further.
GET /accounts/{id}, returns the full account record. Companion endpoints provide a focused balance summary (GET /accounts/{id}/balance), a list of the most recent transactions (GET /accounts/{id}/transactions), and an admin-level listing of all accounts (GET /accounts). All read operations require a valid Bearer JWT.
Get Account by ID
http://localhost:8085
Full URL: http://localhost:8085/accounts/{id}
Authentication
Path Parameters
The primary key of the account to retrieve.
Response Fields
Returns anAccountOutDTO object on 200 OK.
The account’s primary key.
The primary key of the user that owns this account.
The unique human-readable alias for this account (e.g.,
sol.rio.mar).The unique 22-character Uniform Virtual Key for this account.
Current balance in the account’s default currency.
List of transaction identifiers or descriptions associated with this account.
Example
Get Balance Summary
http://localhost:8085/accounts/{id}/balance
Returns a lightweight AccountResponse containing only the account ID and current balance. Useful for dashboard widgets that only need to display the balance without loading the full account record.
Authentication
Path Parameters
The primary key of the account whose balance is being queried.
Response Fields
The account’s primary key.
The current balance of the account.
Example
Get Last Transactions
http://localhost:8085/accounts/{id}/transactions
Returns a list of the most recent Transaction objects associated with the given account. The service layer determines the number of transactions returned (typically the last 10).
Authentication
Path Parameters
The primary key of the account whose transaction history is being queried.
Example
Get All Accounts (Admin)
http://localhost:8085/accounts
Returns a list of every AccountOutDTO in the system. This endpoint is intended for administrative use only.
Authentication
This endpoint returns data for all accounts on the platform. It should be
protected at the Gateway or service level to allow access only to principals
with
ROLE_ADMIN. Do not expose it to regular users.Example
Error Codes
| HTTP Status | Description |
|---|---|
401 Unauthorized | The Authorization header is missing or the JWT is invalid/expired. |
404 Not Found | No account exists with the provided id. Thrown as ResourceNotFoundException and handled by GlobalExceptionHandler. |
