Endpoints

<aside> 💡 Note: If you are integrating for use on Just Eat, please use uk.api.just-eat.io/docs. Please use the link above. The content below is primarily updated for SkipTheDishes.

</aside>

How it works

Used to update the order status of a pending order. Orders are marked pending when you respond to a call to the Receive Order endpoint with a 202 status. Requests to this endpoint for an order which is no longer pending will fail.

If this endpoint is not called within 5 minutes after an order is marked as pending, the order status will switch to "failed to inject".

Request format

Endpoint to call

POST <https://order-injection-status-updater.flyt-platform.com/order/{ORDER_ID}/sent-to-pos-{STATUS}>

Headers

X-Flyt-API-Key: the API key you received from Flyt. You should not share this API key with anyone outside your organisation.

Content-Type: specified the content type of your request. Should always be set to application/json.

Path Parameters

ORDER_ID: the identifier for the order for which the status should be updated. Note that this is the Flyt order ID, received as id in the Receive Order endpoint body.

STATUS: status that the order should be marked as. Can be success or failed.

Body