A3ERP API
English
English
  • Quick Start
    • Initial configuration
    • Installation
  • Versions
  • Documentation
    • API Reference
      • Api
      • Validation
      • Email
      • Master
        • Parameters
      • Document
        • Parameters
      • Various
      • Stock movements
      • Stock Reserves
      • Expeditions
      • Links
      • Stock
      • Portfolio
      • Prices
      • Stored Procedures
      • View
      • Listing
      • FastReport
      • Download Files
      • List Linked Folders
Con tecnología de GitBook
En esta página

¿Te fue útil?

  1. Documentation
  2. API Reference

FastReport

Downloading/viewing PDF documents and listings, FastReport.fr3 formats

AnteriorListingSiguienteDownload Files

Última actualización hace 2 años

¿Te fue útil?

POST calls

Body de FastReport

Download a report in fastreport

https://server:5555/api/rptdescarga/descargaprueba.fr3

{
    "SQL":
        [
            {
            "nombre": "frxClientes",
            "sentencia": "select codcli,nomcli,nifcli from clientes order by codcli"
            },
            {
            "nombre": "frxFacturas",
            "sentencia": "select tipocont,serie,numdoc,fecha,referencia,codcli,nomcli,totdoc from cabefacv where month(fecha)=1"
            }
        ]
}
  • POST calls
  • POSTCall for fastreport report

Call for fastreport report

post

This call will return the pdf generated by printing the format indicated in the variable {format}. All the formats we want to print must be in the reports folder indicated in the configuration file in the parameter "CarpetaInformesExternos". In the body of the Json we will pass as many sql sentences as the report requires.

Parámetros de ruta
formatostringRequerido

The name of the fastreport format (File name and extension .fr3)

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200
Returns the document in an Object
application/json
post
POST /api/rptdescarga/{formato} HTTP/1.1
Host: server:<port>
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 115

{
  "json": {
    "SQL": [
      {
        "nombre": "frxClientes",
        "sentencia": "select codcli,nomcli,nifcli from clientes order by codcli"
      }
    ]
  }
}
200

Returns the document in an Object

{
  "documento": "{Document in base64}"
}