Submits a load condition report from the driver. Persisted to public/files/reports/reports_load-condition.json until the database table is provisioned.
Endpoint: POST /api/report/load-condition
Authentication: None
Required fields: reportId, loadId, stopId, driverId, capturedAt, sections
Section fields: key, rating (1–5), reason, comment, photos_id — single string ID referencing one or more photos
Request body:
{
"reportId": "load-condition-v1",
"loadId": "12345",
"stopId": "12",
"driverId": "DRIVER-77",
"capturedAt": "2026-05-19T14:22:31Z",
"sections": [
{
"key": "stacking",
"rating": 4,
"reason": "Minor damage",
"comment": "Two cases leaning.",
"photos_id": "5141465846"
},
{
"key": "product_in_place",
"rating": 5,
"reason": "No issues noticed",
"comment": "",
"photos_id": ""
},
{
"key": "plastic_cooler_counts",
"rating": 3,
"reason": "Count mismatch",
"comment": "Missing 1 cooler tote.",
"photos_id": "11131454515"
},
{
"key": "plastic_dry_counts",
"rating": 5,
"reason": "No issues noticed",
"comment": "",
"photos_id": ""
},
{
"key": "trailer_cleanliness",
"rating": 2,
"reason": "Debris present",
"comment": "Loose cardboard on floor.",
"photos_id": "1321345645"
}
]
}
Result:
...
Returns stored load condition reports. All query parameters are optional and combinable.
Endpoint: GET /api/report/load-condition
Authentication: None
Query parameters:
reportId — filter by report type ID (e.g. load-condition-v1)loadId — filter by load IDstopId — filter by stop IDResult:
...