1. Raíz
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
  1. Raíz

List Shipments

GET
/api/shipments
Returns a paginated list of trip/shipment documents for the authenticated tenant.
Each document represents a single trip and includes:
One or more shipment legs with product, vehicle, and timing details
Origin and destination location data (SAT-coded addresses)
Driver information
A reference to the associated financial document via idFinan

Joining with Financial Documents#

Use TripDocument.idFinan to match against FinancialDocument.id to retrieve
the invoice and payment details for any shipment.

Shipment Status Reference#

ValueLabelDescription
1CargadoLoaded — shipment in transit
2DescargadoUnloaded — delivery completed
3Por FacturarPending invoice generation
4FacturadoInvoice issued
5Pago ParcialPartially paid
6PagadoFully paid
7IncidenteIncident reported
9CanceladoCancelled

Vehicle ID Format#

The vehicle field uses the format {unit_id}_{tow} where tow is 1 for the
first tow and 2 for the second (double tow configurations).

Product Volume Correction#

valueLoadN and valueOffLoadN represent volumes corrected to 20°C standard
temperature, as required for hydrocarbon compliance (Control Volumétrico SAT).

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 shipment list
Bodyapplication/json

🟠400BadRequest
🟠401Unauthorized
🟠403Forbidden
🟠429TooManyRequests
🔴500InternalServerError
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://api.dufrei.com/api/shipments?limit=undefined' \
--header 'x-api-key: <api-key>'
Respuesta Ejemplo de Respuesta
200 - Hydrocarbon shipment with volume pricing
[
    {
        "_id": "699c7b6a884beedd97446875",
        "idFinan": "1771848000000_6cfb1",
        "client": "KGA150313LM0",
        "company": "TEK170407IA0",
        "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": "Avenida Chichen Itza",
                "exNum": "Mz 19, Lote 3-03",
                "state": "ROO",
                "zip": "77530",
                "local": "0259",
                "region": "005",
                "country": "MEX"
            }
        },
        "shipments": [
            {
                "id": "0q2n00zkxa7v",
                "shipment": "640632",
                "date": 260223,
                "loadDate": 1771862698,
                "offloadDate": 1771899922,
                "region": "MX",
                "loadTemp": "20°C",
                "status": 4,
                "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"
                        }
                    }
                ]
            }
        ]
    }
]
Modificado en 2026-02-24 05:17:23
Anterior
List Financial Documents
Siguiente
Send MCP JSON-RPC Message
Built with