idFinan, nCed, nRel).detail query parameter:summary (default): Aggregates loaded/offloaded volumes, calculates net merma/shrinkage,full: Returns the raw MongoDB document with all internal trip logs and subdocuments.curl --location 'https://api.dufrei.com/api/shipments?limit=&page=&client=&shipmentId=&startDate=&endDate=&loadStartDate=&loadEndDate=&offloadStartDate=&offloadEndDate=&dateFilterBy=&status=&detail=' \
--header 'x-api-key: <api-key>'{
"meta": {
"total": 85,
"page": 1,
"limit": 50,
"tenant": "XAXX010101000",
"detail": "summary"
},
"data": [
{
"id": "699c7b6a884beedd97446875",
"client": "KGA150313LM0",
"company": "XAXX010101000",
"driver": "ERIK MOISES TUCUCH ROSENDO",
"references": {
"nCed": "COA-22",
"nRel": "2506-001",
"idFinan": "1771848000000_6cfb1"
},
"route": {
"origin": {
"id": "688",
"city": "Merida",
"state": "YUC"
},
"destination": {
"id": "KemaGasES13354",
"city": "Cancun",
"state": "ROO"
}
},
"shipments": [
{
"shipmentId": "640632",
"date": 260223,
"region": "MX",
"vehicle": "FZS3656_1",
"status": 4,
"pricing": {
"merchandiseValue": 0,
"pricingModel": "volume",
"tarifUnit": 0.6282,
"toll": 0,
"billedFreight": 26785.72,
"totalFreight": 0
},
"volumes": {
"loaded": 42637,
"offloaded": 42550,
"shrinkageVolume": 87,
"shrinkagePercent": 0.204,
"exceedsTolerance": false,
"products": [
{
"desc": "Gasolina regular menor a 91 octanos",
"code": "15101514",
"loaded": 29845.9,
"offloaded": 29845.9
}
]
}
}
],
"financialLinked": {
"id": "1771848000000_6cfb1",
"status": {
"code": 4,
"label": "Facturado"
},
"total": 26785.72,
"invoiceFolio": "202500384",
"invoiceUuid": "295A6B4A-25E5-56C0-95BF-CCCC0D169E4B",
"pdf": "https://storage.googleapis.com/dufrei-admin/XAXX010101000/invoice/FC-202500384.pdf",
"xml": "https://storage.googleapis.com/dufrei-admin/XAXX010101000/invoice/FC-202500384.xml"
}
}
]
}