gastrotodo

gastrotodo for developers

· Reporting API

Getting started

Errors and limits

Error format

Every error response has an HTTP status and this structure:

json
{
  "error": {
    "code": "range_too_large",
    "message": "The time window must not exceed 92 days.",
    "requestId": "c684662c-4859-456a-bcec-1c641c6f18bb"
  }
}

Base your error handling on code, not on the text in message. The requestId is also sent in the X-Request-Id header of every response.

StatusCodeMeaning
400invalid_limitlimit is not an integer between 1 and 1000
400invalid_cursorcursor was not returned by this dataset
400invalid_from, invalid_toNot a valid date, or a timestamp without a time zone
400from_after_tofrom is not before to
400range_too_largeThe time window is longer than 92 days
401missing_api_keyThe Authorization: Bearer … header is missing
401invalid_api_keyThe key is unknown or revoked, or the Reporting API is not enabled
401expired_api_keyThe key has expired
403ip_not_allowedThe request came from an IP address that is not allowed
404unknown_datasetThe dataset does not exist
405method_not_allowedA method other than GET was used
429rate_limitedToo many requests; see Limits
500internal_errorSomething went wrong at gastrotodo; try again later

Responses with status 502, 503, or 504 do not come from the API itself, so their body may look different.

Limits

  • You can send 120 requests per minute per organization. An additional limit applies per IP address.
  • If you exceed a limit, you receive 429 with a Retry-After header in seconds. Wait at least that long before you retry.

Recommendations for your loader

  • After 429, 5xx, or a dropped connection, retry with increasing delays (e.g. 2, 4, and 8 seconds, with at most 5 attempts).
  • Do not retry after any other 4xx error.
  • Load pages one after another, not in parallel.

Previous

Pagination and time windows

Next

Security and data protection

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