DUFREI API
    • Raíz
      • Health Check
        GET
      • Initialize SSE Stream
        GET
      • List Financial Documents
        GET
      • List Shipments
        GET
      • Send MCP JSON-RPC Message
        POST
    • Schemas
      • ErrorResponse
      • FinancialDocument
      • CanceledRecord
      • TripDocument
      • PaymentRecord
      • MexicanAddress
      • ShipmentLeg

    PaymentRecord

    A payment event applied to a financial document. Can be either:
    A Credit Note (typePay: "NC") — partial adjustment reducing the invoice balance
    A Payment Complement (typePay: SAT code) — actual cash/transfer payment registered before the SAT
    Payments are applied sequentially. Use iPrev → iPay → iPend to trace the balance reduction chain.

    {
        "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/TEK170407IA0/payment/CP - D34A55B5-0FC1-52EA-BD86-2E04148AD0AF.pdf",
            "xml": "https://storage.googleapis.com/dufrei-admin/TEK170407IA0/payment/CP - D34A55B5-0FC1-52EA-BD86-2E04148AD0AF.xml"
        }
    }
    Built with