Daily outcomes
haccp-incidents
/api/v1/reporting/haccp-incidentsHACCP 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.
type | Meaning |
|---|---|
deviation | A reading outside the limits; see haccp-measurements for details |
missed_check | A HACCP check without a report |
canceled_check | A 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 toFirst business day, YYYY-MM-DD, inclusive
todate · optional · Default: current business dayLast business day, YYYY-MM-DD, inclusive. The window can span at most 92 days
limitinteger · optional · Default: 500Rows per page, 1 to 1000
cursorstring · optionalnextCursor of the previous page
Fields
idstringIncident ID, in the form type:ID of the measurement or outcome
typestringType of incident
Possible values: deviation, missed_check, canceled_check
datedateBusiness day
occurredAttimestamp · nullableTime of the measurement or cancellation; null for missed checks
areaIdintegerArea ID
areaNamestring · nullableName of the area
locationIdinteger · nullableLocation ID; null means the whole area
locationNamestring · nullableName of the location
taskIdintegerTask ID
taskTitlestring · nullableTitle of the task
departmentIdinteger · nullableID of the department the task currently belongs to
departmentNamestring · nullableName of that department
haccpTypestring · nullableKind of HACCP check
Possible values: goods_receipt, cold_storage, heating, serving, cleaning_disinfection, pest_control, staff_training, frying_oil, other
measurementPointstring · nullableMeasuring point of the task, e.g. Cold store 1; the current one
measuredValuedecimal · nullableReading, only for deviations
limitMindecimal · nullableLower limit at the time, only for deviations
limitMaxdecimal · nullableUpper limit at the time, only for deviations
measurementUnitstring · nullableUnit, only for deviations
Possible values: celsius, tpm
reasonstring · nullableWhy the check was canceled or missed, if recorded
correctiveActionstring · nullableCorrective action
hasCorrectiveActionbooleanWhether a corrective action was recorded
reportedByEmployeeIdinteger · nullablePerson who took the measurement or canceled the check (employee ID)
reportedByNamestring · nullableName of that person
measurementIdinteger · nullableAssociated row in haccp-measurements, only for deviations
taskReportIdinteger · nullableAssociated row in task-reports
taskOutcomeIdstring · nullableAssociated row in task-outcomes; null for deviations
Request
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
{
"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"
}
}