Saltar al contenido principal
GET
/
v1
/
reports
/
{id}
/
download
Descargar un informe
curl --request GET \
  --url https://reporter.sandbox.lerian.net/v1/reports/{id}/download
"HTTP/1.1 200 OK\nContent-Type: text/html\nContent-Disposition: attachment; filename=\"report.html\"\n\n<!DOCTYPE html>\n<html lang=\"en\">                    \n  <head>\n    <meta charset=\"UTF-8\">\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n    <title>Report: Financial Report</title>\n  </head>\n  <body>\n     <h1>Report: Financial Report</h1>\n    <p>Organization: XYZ Company Ltd</p>\n    <p>Ledger: Main Ledger</p>\n    <p>Date:30/04/2025</p>\n    <table border=\"1\">\n      <thead>\n        <tr>\n          <th>AccountID</th>\n          <th>Alias</th>\n          <th>Balance</th>\n          <th>TransactionID</th>\n          <th>TransactionStatus</th>\n          <th>Amount</th>\n          <th>AssetCode</th>\n          <th>Route</th>\n          <th>ConcatAccountLedger</th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr>\n          <td>12345</td>\n          <td>Checking Account</td>\n          <td>150.00</td>\n          <td>TXN001</td>\n          <td>Approved</td>\n          <td>50.00</td>\n          <td>BRL</td>\n          <td>Reveneus</td>\n          <td>Checking Account - Main Ledger</td>\n        </tr>\n        <tr>\n          <td>67890</td>\n          <td>Savings</td>\n          <td>250.00</td>\n          <td>TXN002</td>\n          <td>Approved</td>\n          <td>100.00</td>\n          <td>BRL</td>\n          <td>Investments</td>\n          <td>Savings - Main Ledger</td>\n        </tr>\n      </tbody>\n    </table>\n    <h2>Summary</h2>\n    <p>Total Accounts: 2</p>\n    <p>Total Amount: 150.00</p>\n    <p>Ledger Summary: Main Ledger - XYZ Company Ltd</p>\n  </body>\n</html>\n"

Encabezados

Authorization
string

El token de autorización en formato 'Bearer '. Importante: Este encabezado es obligatorio si su entorno tiene habilitado Access Manager. Para obtener más información, consulte la documentación de Access Manager.

X-Organization-id
string

The unique identifier of the Organization associated with the request.

Parámetros de ruta

id
string
requerido

Unique identifier for the report that you want to check.

Respuesta

La respuesta correcta contiene el informe generado y dos encabezados:

  • Content-Type (cadena): Indica el formato del informe devuelto.

    • Valores posibles: text/html, text/xml, text/csv, text/plain
    • Ejemplo: text/html
  • Content-Disposition (cadena): Indica cómo debe manejar el archivo el cliente.

    • Ejemplo: attachment; filename="report.html"

Nota: Los ejemplos de respuesta ilustran posibles formatos de salida. En la práctica, solo recibirá un formato a la vez, que coincidirá con el Content-Type devuelto.

The response is of type string.