Daily outcomes
task-outcomes
/api/v1/reporting/task-outcomesThe outcome of every due task per business day and location. It uses the same calculation as the daily report and the organization's results overview in the app. Use this dataset for fulfillment rates instead of implementing the rules yourself.
Status
| Status | Meaning | Counts toward the rate |
|---|---|---|
completed | Completed | Yes, as fulfilled |
canceled | Canceled, with a reason | Yes, as not fulfilled |
missed | Not reported | Yes, as not fulfilled |
skipped | Not needed that day | No |
open | Not reported yet, the business day is not over | No |
Fulfillment rate for a day = completed ÷ (completed + canceled + missed).
Rules that are already applied
- Business day: A business day ends at 3 a.m. in the time zone given in
meta.timeZone. Read the time zone from the response instead of assuming one. - Current business day:
meta.openDaycontains its date. Tasks without a report on that day areopen, notmissed. Future days are not delivered. - Late completion: If a task is completed on a later day, the planned day stays
missed. Acompletedrow withisLate: trueis added on the day of completion, so completing a task late does not erase the gap. - Early completion: If a task is completed before the planned day, it counts on the day of completion.
- Rest days: Tasks without a report on a rest day do not appear.
- No duplicates: There is one row per task, location, and day. A completion takes precedence over
missed. - Not included: Onboarding tasks, deleted tasks, and tasks in deactivated groups. When a task is deleted, its earlier rows disappear as well, so always replace the whole window when loading.
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
idstringOutcome ID, in the form date:taskId:locationId; locationId is 0 for the whole area
datedateBusiness day
areaIdintegerArea ID
areaNamestring · nullableName of the area
locationIdinteger · nullableLocation ID; null means the whole area
locationNamestring · nullableName of the location
taskIdintegerTask ID
taskTitlestringTitle of the task
departmentIdinteger · nullableID of the department the task currently belongs to
departmentNamestring · nullableName of that department
statusstringOutcome on that day
Possible values: completed, canceled, missed, skipped, open
isHaccpbooleanWhether this is a HACCP task
plannedDatedateDay the task was planned for
isLatebooleanWhether the task was reported on a later day than planned
reportedByEmployeeIdinteger · nullablePerson who reported the task (employee ID)
reportedByNamestring · nullableName of that person
reportedAttimestamp · nullableTime of the report
reasonstring · nullableWhy the task was canceled or missed, if recorded
correctiveActionstring · nullableWhat was done about a missed task, if recorded
Request
curl -G "https://www.gastrotodo.de/api/v1/reporting/task-outcomes" \
-d from=2026-11-24 \
-d to=2026-11-30 \
-H "Authorization: Bearer $GASTROTODO_API_KEY"Response
{
"data": [
{
"id": "2026-11-30:55120:4011",
"date": "2026-11-30",
"areaId": 812,
"areaName": "Hamburg",
"locationId": 4011,
"locationName": "Harbor",
"taskId": 55120,
"taskTitle": "Check fridge temperature",
"departmentId": 310,
"departmentName": "Service",
"status": "completed",
"isHaccp": true,
"plannedDate": "2026-11-30",
"isLate": false,
"reportedByEmployeeId": 9021,
"reportedByName": "Mara Wolf",
"reportedAt": "2026-11-30T07:12:09.000Z",
"reason": null,
"correctiveAction": null
}
],
"nextCursor": null,
"meta": {
"dataset": "task-outcomes",
"count": 1,
"generatedAt": "2026-12-01T06:00:00.000Z",
"from": "2026-11-25",
"to": "2026-12-01",
"openDay": "2026-12-01",
"timeZone": "UTC"
}
}