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

    TripDocument

    A trip record representing a completed freight movement. Contains all shipment legs,
    origin/destination details, driver info, and a reference to the financial document.

    Key Relationships#

    idFinan matches FinancialDocument.id for joining financial data
    company is the carrier RFC (tenant), client is the shipper RFC
    origin.nif and destination.nif are the RFCs of the loading/unloading parties

    {
        "_id": "699c7b6a884beedd97446875",
        "idFinan": "1771848000000_6cfb1",
        "company": "TEK170407IA0",
        "client": "KGA150313LM0",
        "driver": {
            "name": "ERIK MOISES TUCUCH ROSENDO"
        },
        "origin": {
            "id": "688",
            "nif": "PME380607P35",
            "address": {
                "street": "Carretera Merida-Uman km 8.5 s/n",
                "exNum": "S/N",
                "state": "YUC",
                "zip": "97150",
                "local": "0097",
                "region": "050",
                "country": "MEX"
            }
        },
        "destination": {
            "id": "KemaGasES13354",
            "nif": "KGA150313LM0",
            "address": {
                "street": "Carretera Merida-Uman km 8.5 s/n",
                "exNum": "S/N",
                "state": "YUC",
                "zip": "97150",
                "local": "0097",
                "region": "050",
                "country": "MEX"
            }
        },
        "shipments": [
            {
                "id": "0q2n00zkxa7v",
                "shipment": "640632",
                "date": 260223,
                "loadDate": 1771862698,
                "offloadDate": 1771899922,
                "region": "MX",
                "loadTemp": "20°C",
                "status": 1,
                "vehicle": "FZS3656_1",
                "financial": {
                    "currency": "MXN",
                    "exchangeRate": 1,
                    "exchangeRateDate": 1771862698,
                    "pricingModel": "volume",
                    "famount": 26785.72,
                    "tamount": 0,
                    "price": 0,
                    "tarif": 0.6282271267
                },
                "product": [
                    {
                        "id": "32035",
                        "codeHM": "1203",
                        "code": "15101514",
                        "desc": "Gasolina regular menor a 91 octanos",
                        "weight": {
                            "valueLoad": 29845.9,
                            "valueOffLoad": 29845.9,
                            "unit": "KG"
                        },
                        "volume": {
                            "valueLoad": 42637,
                            "valueLoadN": 42637,
                            "valueOffLoad": 42637,
                            "valueOffLoadN": 42637,
                            "unit": "LTR"
                        }
                    }
                ]
            }
        ]
    }
    Built with