Generate and download a PDF receipt for any recorded activity entry. The server dynamically builds the PDF using iText, embedding the activity ID, type, amount, timestamp, and description, then streams it back as a binary response. TheDocumentation 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.
Content-Disposition: attachment header instructs browsers and HTTP clients to save the file rather than render it inline.
Endpoint
http://localhost:8085
Authentication
A valid Bearer JWT must be provided 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 owns the activity entry.
The numeric identifier of the activity for which a receipt is to be generated.
Response
Returns200 OK with the PDF binary as the response body.
Response Headers
| Header | Value |
|---|---|
Content-Type | application/pdf |
Content-Disposition | attachment; filename=comprobante_operacion.pdf |
Receipt Contents
The generated PDF includes the following fields drawn directly from theActivity entity:
The unique identifier of the activity record.
The activity type:
deposit, transfer-out, or transfer-in.The monetary amount involved in the activity.
ISO-8601 timestamp of when the activity was recorded.
Human-readable description — for deposits this includes the card number used; for transfers it includes the counterpart CVU.
Example Request
-o receipt.pdf flag tells curl to write the binary response directly to receipt.pdf in the current directory.
Error Responses
| Status | Exception | Condition |
|---|---|---|
401 Unauthorized | — | Missing or invalid Bearer token (rejected at the gateway). |
404 Not Found | ResourceNotFoundException | No activity with activityId exists in the system. |
Receipt generation is performed synchronously on the request thread. For very high-volume deployments, consider caching generated PDFs or offloading generation to a background worker to avoid latency spikes.
