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
        • Cash Inflow Forecast & Customer Concentration (HHI)
        • Discounts, Demurrage & Shrinkage Recovery Audit
      • 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

    PaymentRecord

    A payment event applied to a financial document. Can be either a Credit Note (typePay: "NC")
    or an official SAT Payment Complement (typePay: "01", "03", etc.).

    {
        "id": "7D6219C7-8F5E-5D8B-8B23-480B8A33DECE",
        "num": "string",
        "typePay": "03",
        "date": 1768500000,
        "iPay": 74257.48,
        "iPend": 0,
        "iPrev": 74257.48,
        "Tax1": 934.07,
        "Tax2": 20.89,
        "files": {
            "pdf": "https://storage.googleapis.com/dufrei-admin/XAXX010101000/payment/CP-202500314.pdf",
            "xml": "https://storage.googleapis.com/dufrei-admin/XAXX010101000/payment/CP-202500314.xml"
        }
    }
    Built with