Permanently unlinks and deletes a card from the specified account. The service confirms both that the card exists and that it is actually associated with the given account before deletion. If either condition fails, 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.
404 is returned. On success, a JSON confirmation message is returned with 200 OK.
Endpoint
http://localhost:8085
Authentication
A valid Bearer JWT is required in the
Authorization header. Requests without a valid token are rejected at the API Gateway before reaching this endpoint.Path Parameters
The numeric identifier of the account that owns the card.
The numeric identifier of the card to remove.
Response
Returns200 OK with a JSON confirmation object on successful deletion.
Response Fields
A human-readable confirmation string. Value is always
"Tarjeta eliminada exitosamente".Example Request
Example Response
Error Responses
| Status | Exception | Condition |
|---|---|---|
401 Unauthorized | — | Missing or expired Bearer token (rejected at the gateway). |
404 Not Found | CardNotFoundException | No card with cardId exists, or the card is not associated with accountId. |
