Credit a digital-money account by transferring funds from a linked card. The service looks up both the account and the specified card, then verifies that the card is actually owned by the account before adding the funds to the balance. ADocumentation 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.
Transference record and a corresponding Activity entry of type deposit are persisted atomically so the transaction is fully auditable.
Endpoint
http://localhost:8085
Authentication
A valid Bearer JWT must be supplied in the
Authorization header. The API Gateway validates the token before forwarding the request to the accounts service.Path Parameters
The numeric identifier of the account that will receive the deposited funds.
Request Body
Send a JSON object mapped toTransferenceOutDTO:
The ID of the linked card from which the deposit will be drawn. The card must already be associated with
accountId — see Link a New Card.The amount to deposit. Must be a positive number (e.g.
500.00).Response
Returns201 Created with a plain-text confirmation message on success.
Activity Record Created
After a successful deposit, the service automatically creates anActivity entry with:
| Field | Value |
|---|---|
type | "deposit" |
amount | The deposited amount |
description | "Depósito de <amount> usando tarjeta <cardNumber>" |
date | Server timestamp at time of deposit |
accountId | The receiving account’s ID |
Example Request
Example Response
Error Responses
| Status | Exception | Condition |
|---|---|---|
400 Bad Request | — | General request error (malformed body, missing fields, or other unexpected error). |
403 Forbidden | UnauthorizedException | The specified cardId does not belong to the given accountId. |
404 Not Found | ResourceNotFoundException | The account or card could not be found. |
