Integrate Healthcheck

In order for your restaurant to be online you must provide a healthcheck endpoint that Flyt will poll. If this endpoint returns an error or you indicate that the restaurant is offline Flyt will set its status to offline. Whilst the location is offline, users of Flyt will be unable to order from your restaurant.

Flyt will poll this endpoint:

GET /webhook/ordering/site/{siteId}/healthcheck

Expecting the response:

response 200 OK
    "status": "online"

If the status is anything but online the restaurant will be taken offline in Flyt. Equally, any http status code that is not a 200 will be considered as offline.