Retrieve every card associated with a given digital-money account. The response is always an array — if the account has no linked cards the server returns an empty array (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.
[]) with a 200 OK status rather than a 404. All requests must include a valid JWT in the Authorization header; the token is validated by the API Gateway before the request reaches the accounts service.
Endpoint
http://localhost:8085
Authentication
All card endpoints require a valid Bearer JWT obtained at login. Include it in every request as
Authorization: Bearer <token>.Path Parameters
The unique numeric identifier of the account whose cards you want to list.
Response
Returns a JSON array ofCardOutDTO objects. An empty array is returned when no cards are linked.
Response Fields
Internal auto-generated identifier for the card record.
The full card number as stored in the system.
Name of the card holder as it appears on the card.
Card expiration date (e.g.
"12/26").The card security code (CVV/CVC).
The account this card is linked to — mirrors the
accountId path parameter.Example Request
Example Response
Empty Account
Error Responses
| Status | Condition |
|---|---|
400 Bad Request | accountId is not a valid long integer or the request is malformed. |
401 Unauthorized | The Authorization header is missing or the token is invalid. |
500 Internal Server Error | An unexpected error occurred on the server. |
