FoodGuard Mobile API
  1. Inspection
FoodGuard Mobile API
  • Authentication
    • User Login
      POST
    • User Logout
      POST
  • Lookups
    • Get All Branches
      GET
    • Get All Suppliers
      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
  • Schemas
    • User
    • Branch
    • Supplier
    • BatchInitResponse
    • AISampleResult
    • ErrorResponse
    • ValidationErrorResponse
  1. Inspection

Initialize Inspection Batch

Pending
POST
/batches/init
Can be used to start the batch after lookup confirms it exists.

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired

Example
{
    "supplier_id": 101,
    "branch_id": 1,
    "category_id": 5,
    "reference_number": "PO-998877"
}

Responses

🟢201
application/json
Batch Created / Started
Body

Example
{
    "success": true,
    "data": {
        "batch_id": "BTH-2025-0012",
        "status": "pending_upload",
        "created_at": "2019-08-24T14:15:22Z"
    }
}
Modified at 2025-12-18 11:12:07
Previous
Lookup Batch by QR/Barcode
Next
Upload Sample Image for AI Analysis
Built with