1. 3. Financial Documents
DUFREI API
  • Raíz
    • 1. Core & Health
      • Health Check
    • 2. AI Agents & MCP
      • Model Context Protocol (Streamable HTTP)
      • Initialize Legacy SSE Stream
      • Send Legacy MCP JSON-RPC Message
    • 3. Financial Documents
      • List Financial Documents
        GET
      • Cash Inflow Forecast & Customer Concentration (HHI)
        GET
      • Discounts, Demurrage & Shrinkage Recovery Audit
        GET
    • 4. Shipments & Fleet
      • List Shipments (Trips)
      • Audit Fleet Utilization and Productivity
      • Audit Dispatch-to-Bill and Invoicing Efficiency
      • Freight Financial Unit Economics ($/km, $/L)
    • 3. Financial & Invoices
      • SAT CFDI 4.0 Monthly Fiscal Ledger & Retention Reconciliation
    • 5. Scheduled Alerts
      • Schedule Alert Rules
  • Schemas
    • PaginationMeta
    • FinancialDocsResponse
    • ShipmentsResponse
    • FinancialSummary
    • TripSummary
    • ErrorResponse
    • CanceledRecord
    • PaymentRecord
    • FinancialDocument
    • MexicanAddress
    • ShipmentLeg
    • TripDocument
    • ScheduleAlertsRequest
    • ScheduleAlertsSuccessResponse
    • McpJsonRpcRequest
    • McpJsonRpcResponse
    • RouteCatalogDetails
    • FleetUtilizationResponse
    • DispatchToBillResponse
    • CashInflowForecastResponse
    • DiscountsAndShrinkageResponse
    • FinancialUnitEconomicsResponse
  1. 3. Financial Documents

Cash Inflow Forecast & Customer Concentration (HHI)

GET
/api/cash-inflow-forecast
Projects weekly collections across 4 forward time horizons (7d, 15d, 30d, 45d+), estimates client historical
payment terms, identifies overdue uncollected balances, and calculates the Herfindahl-Hirschman Index (HHI)
for debtor concentration risk.

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 cash inflow forecast.
Encabezados

Bodyapplication/json

🟠401Unauthorized
🟠429TooManyRequests
🔴500InternalServerError
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://api.dufrei.com/api/cash-inflow-forecast?client=&asOfDate=&defaultPaymentDays=&limit=' \
--header 'x-api-key: <api-key>'
Respuesta Ejemplo de Respuesta
200 - Ejemplo 1
{
    "meta": {
        "tenant": "string",
        "baseDate": "string",
        "totalReceivablesMxn": 0,
        "activeClientsCount": 0
    },
    "forecastSummary": {
        "horizon_7d": {},
        "horizon_15d": {},
        "horizon_30d": {},
        "horizon_45d_plus": {},
        "overdue_uncollected": {}
    },
    "customerConcentration": {
        "herfindahlHirschmanIndex": 0,
        "concentrationRiskTier": "string",
        "assessment": "string",
        "top1SharePct": 0,
        "top3SharePct": 0,
        "top5SharePct": 0,
        "clientsRanking": [
            {}
        ]
    }
}
Modificado en 2026-09-20 15:05:35
Anterior
List Financial Documents
Siguiente
Discounts, Demurrage & Shrinkage Recovery Audit
Built with