FoodGuard Mobile API
  1. Food Safety
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Branches
      • List
      • Show
    • Suppliers
      • List
      • Show
    • List Food Categories
      GET
  • Inspection
    • Lookup Batch by QR/Barcode
      GET
    • Initialize Inspection Batch
      POST
    • Upload Sample Image for AI Analysis
      POST
    • Finalize Batch Inspection
      POST
  • History
    • Get Inspection History
      GET
  • Inspector Dashboard
    • Get Home Screen Stats
      GET
  • Food Safety
    • Submit Truck Inspection Data
      POST
    • Upload Sample Label Photo
      POST
    • Analyze Label Image (OCR)
      POST
  • Settings
    • Get Quality Thresholds
      GET
  • Schemas
    • User
    • Branch
    • Supplier
    • BatchInitResponse
    • AISampleResult
    • ErrorResponse
    • ValidationErrorResponse
    • TruckInspectionRequest
    • TruckInspectionResponse
    • Category
    • ThresholdSettings
  1. Food Safety

Submit Truck Inspection Data

POST
/batches/{batch_id}/truck-inspection
Records truck inspection data including temperature, cleanliness, and vehicle identification during batch delivery.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Body Params application/jsonRequired

Example
{
    "vehicle_id": "VH-1234",
    "truck_temp": 4.5,
    "truck_cleanliness": true
}

Responses

🟢200
application/json
Truck inspection recorded successfully
Body

Example
{
    "success": true,
    "data": {
        "batch_id": "BTH-2025-0012",
        "truck_inspection": {
            "vehicle_id": "VH-1234",
            "truck_temp": 4.5,
            "truck_cleanliness": true,
            "temp_status": "passed",
            "threshold": 10,
            "warning_threshold": 8,
            "recorded_at": "2025-12-24T10:30:00Z"
        },
        "batch_status": {
            "value": "passed",
            "label": "Pending"
        }
    }
}
🟠404
🟠422
Modified at 2025-12-24 10:09:40
Previous
Get Home Screen Stats
Next
Upload Sample Label Photo
Built with