gastrotodo

gastrotodo for developers

· Reporting API

Daily outcomes

haccp-incidents

GET/api/v1/reporting/haccp-incidents

HACCP deviations, missed checks, and canceled checks, and whether a corrective action was recorded. The time window refers to business days (date). Load the last 7 days every day and replace that window; see Pagination and time windows.

typeMeaning
deviationA reading outside the limits; see haccp-measurements for details
missed_checkA HACCP check without a report
canceled_checkA HACCP check that was canceled, with a reason

Skipped checks and checks on rest days or on the current business day do not count as missed. If a check is completed late, the incident stays on the planned day. hasCorrectiveAction tells you whether a corrective action was recorded. gastrotodo does not record whether it was effective.

Query parameters

fromdate · optional · Default: 7 days up to and including to

First business day, YYYY-MM-DD, inclusive

todate · optional · Default: current business day

Last business day, YYYY-MM-DD, inclusive. The window can span at most 92 days

limitinteger · optional · Default: 500

Rows per page, 1 to 1000

cursorstring · optional

nextCursor of the previous page

Fields

idstring

Incident ID, in the form type:ID of the measurement or outcome

typestring

Type of incident

Possible values: deviation, missed_check, canceled_check

datedate

Business day

occurredAttimestamp · nullable

Time of the measurement or cancellation; null for missed checks

areaIdinteger

Area ID

areaNamestring · nullable

Name of the area

locationIdinteger · nullable

Location ID; null means the whole area

locationNamestring · nullable

Name of the location

taskIdinteger

Task ID

taskTitlestring · nullable

Title of the task

departmentIdinteger · nullable

ID of the department the task currently belongs to

departmentNamestring · nullable

Name of that department

haccpTypestring · nullable

Kind of HACCP check

Possible values: goods_receipt, cold_storage, heating, serving, cleaning_disinfection, pest_control, staff_training, frying_oil, other

measurementPointstring · nullable

Measuring point of the task, e.g. Cold store 1; the current one

measuredValuedecimal · nullable

Reading, only for deviations

limitMindecimal · nullable

Lower limit at the time, only for deviations

limitMaxdecimal · nullable

Upper limit at the time, only for deviations

measurementUnitstring · nullable

Unit, only for deviations

Possible values: celsius, tpm

reasonstring · nullable

Why the check was canceled or missed, if recorded

correctiveActionstring · nullable

Corrective action

hasCorrectiveActionboolean

Whether a corrective action was recorded

reportedByEmployeeIdinteger · nullable

Person who took the measurement or canceled the check (employee ID)

reportedByNamestring · nullable

Name of that person

measurementIdinteger · nullable

Associated row in haccp-measurements, only for deviations

taskReportIdinteger · nullable

Associated row in task-reports

taskOutcomeIdstring · nullable

Associated row in task-outcomes; null for deviations

Request

bash
curl -G "https://www.gastrotodo.de/api/v1/reporting/haccp-incidents" \
  -d from=2026-11-24 \
  -d to=2026-11-30 \
  -H "Authorization: Bearer $GASTROTODO_API_KEY"

Response

json
{
  "data": [
    {
      "id": "deviation:104902",
      "type": "deviation",
      "date": "2026-11-30",
      "occurredAt": "2026-11-30T07:40:51.000Z",
      "areaId": 812,
      "areaName": "Hamburg",
      "locationId": 4011,
      "locationName": "Harbor",
      "taskId": 55121,
      "taskTitle": "Check counter fridge temperature",
      "departmentId": 310,
      "departmentName": "Service",
      "haccpType": "cold_storage",
      "measurementPoint": "Counter fridge",
      "measuredValue": 9.1,
      "limitMin": 0,
      "limitMax": 7,
      "measurementUnit": "celsius",
      "reason": null,
      "correctiveAction": "Goods moved, thermostat adjusted",
      "hasCorrectiveAction": true,
      "reportedByEmployeeId": 9021,
      "reportedByName": "Mara Wolf",
      "measurementId": 104902,
      "taskReportId": 1840307,
      "taskOutcomeId": null
    }
  ],
  "nextCursor": null,
  "meta": {
    "dataset": "haccp-incidents",
    "count": 1,
    "generatedAt": "2026-12-01T06:00:00.000Z",
    "from": "2026-11-25",
    "to": "2026-12-01",
    "openDay": "2026-12-01",
    "timeZone": "UTC"
  }
}

Previous

task-outcomes

Next

BigQuery and Dataform

Ready to structure your business?

Start with gastrotodo — try free for 7 days, then carry on with the plan that fits your business.

Start your 7-day free trialOr book a demo
gastrotodo

Structured operations for hospitality and retail — checklists, HACCP, training and daily reports in one app.

Contact
+49 451 58241800

Mon–Fri 9am–5pm CET

support@gastrotodo.de
App StoreGoogle Play
  • Servers in Germany
  • GDPR-compliant
  • Made in Europe
  • Free setup support

© 2023–2026 gastrotodo.de. All rights reserved.

ContactLegal noticePrivacy PolicyTerms of Service