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 FAILED. Whilst the location is offline, users of Flyt will be unable to order from your restaurant.

Flyt will poll this endpoint:

GET /webhook/ordering/health

Possible results:

response 200 OK
    "status": "$status"

where $status can be OK or FAILED. If the status is anything but OK the restaurant will be taken offline in Flyt. Equally, any http status code that is not a 200 will be considered as offline.