DUFREI API
  1. Raíz
DUFREI API
  • Raíz
    • Health Check
      GET
    • Retrieve financial documents list
      GET
    • Get shipments list
      GET
    • Initialize SSE Stream
      GET
    • Send MCP JSON-RPC Messages
      POST
  • Schemas
    • ErrorResponse
    • FinancialDocument
    • TripDocument
  1. Raíz

Retrieve financial documents list

GET
/api/financial-docs
Returns a paginated list of financial documents sorted by lastUpdate.
Use limit to control pagination.

Solicitud

Autorización
API Key
Agregar parámetro en header
x-api-key
Ejemplo:
x-api-key: ********************
or
Parámetros de consulta

Respuestas

🟢200
application/json
Successful response with document list
Body

Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/financial-docs?limit' \
--header 'x-api-key: <api-key>'
Respuesta Ejemplo de Respuesta
{
    "summary": "Successful response with document list",
    "value": [
        {
            "_id": "671d5f5c2c2c2c2c2c2c2c2c",
            "id": "1234567890",
            "canceled": [],
            "client": "Client 1",
            "company": "Company 1",
            "date": 1708262400000,
            "timestamp": 1708262400000,
            "lastUpdate": "2024-12-15T12:00:00.000Z",
            "iSub": 1000,
            "iTot": 1200,
            "iTax1": 200,
            "iTax2": 0,
            "status": 1,
            "statusAuth": true,
            "ref1": "Ref 1",
            "ref2": "Ref 2",
            "iDesc": 0,
            "iFalt": 0,
            "tarif1": 0,
            "invoice": {
                "id": "INV123",
                "num": "123456",
                "date": 1708262400000,
                "iSub": 1000,
                "iTot": 1200,
                "iTax1": 200,
                "iTax2": 0,
                "ship": 0,
                "source": 0,
                "toll": 0,
                "user": "User 1"
            }
        }
    ]
}
Modificado en 2026-02-23 05:58:43
Anterior
Health Check
Siguiente
Get shipments list
Built with