1. Phase 4: Finalize
FoodGuard Mobile API
  • Authentication
    • Resolve Company
      GET
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • List Branches
      GET
    • Get Branch Details
      GET
    • List Suppliers
      GET
    • Get Supplier Details
      GET
    • List Food Categories
      GET
    • List Shipment Types
      GET
  • Batch Management
    • List Batches
      GET
    • Create Batch
      POST
    • Get Batch Details
      GET
  • Phase 1: Truck Inspection
    • Submit Truck Inspection
      POST
    • Upload Escalation Photo
      POST
  • Phase 2: Label Analysis
    • Analyze Label (OCR)
      POST
    • Update Batch OCR Data
      PATCH
  • Phase 3: Sample Evaluation
    • List Batch Samples
      GET
    • Add Sample to Batch
      POST
    • Replace Sample Photo
      PATCH
    • Delete Sample
      DELETE
  • Phase 4: Finalize
    • Finalize Batch Inspection
      POST
  • Dashboard & History
    • Get Dashboard Stats
      GET
    • Get Inspection History
      GET
  • Settings
    • Get Temperature Thresholds
  • Schemas
    • Sample
    • ShipmentTypeObject
  1. Phase 4: Finalize

Finalize Batch Inspection

POST
/batches/{batch_id}/finalize
Completes the batch inspection with a final verdict. If manual_status is not provided, status is auto-calculated from samples.

Request

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

Body Params application/json

Example
{
    "manual_status": "passed",
    "notes": "string",
    "is_partial_completion": false
}

Responses

🟢200
application/json
Batch finalized successfully
Body

Example
{
    "success": true,
    "message": "string",
    "data": {
        "batch_id": "string",
        "final_score": 0,
        "final_status": {},
        "is_partial_completion": true,
        "notes": "string",
        "finalized_at": "2019-08-24T14:15:22.123Z",
        "samples": [
            {
                "sequence": 0,
                "id": 0,
                "code": "string",
                "name": "string",
                "status": {},
                "ai_insights": "string",
                "ai_confidence": 0,
                "quality_score": 0
            }
        ],
        "summary": {
            "total": 0,
            "passed": 0,
            "rejected": 0,
            "review": 0
        }
    }
}
🟠401
🟠404
🟠422
Modified at 2026-02-23 18:27:16
Previous
Delete Sample
Next
Get Dashboard Stats
Built with