{ "opencollection": "1.0.0", "info": { "name": "Just Eat UK Attempted Delivery API Order Acceptance API API", "version": "3.0" }, "items": [ { "info": { "name": "Order Acceptance API", "type": "folder" }, "items": [ { "info": { "name": "Accept order", "type": "http" }, "http": { "method": "PUT", "url": "https://uk.api.just-eat.io/orders/:orderId/accept", "params": [ { "name": "orderId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Call when an order has been accepted. An order can only be accepted if it hasn't previously been accepted, rejected, cancelled or ignored" }, { "info": { "name": "Cancel order", "type": "http" }, "http": { "method": "PUT", "url": "https://uk.api.just-eat.io/orders/:orderId/cancel", "params": [ { "name": "orderId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Call when an order has been cancelled by Ops. Cancelling an order overrides any previous accept/reject calls. This should not be used for restaurant rejection but only from Ops involvement" }, { "info": { "name": "Complete order", "type": "http" }, "http": { "method": "POST", "url": "https://uk.api.just-eat.io/orders/:orderId/complete", "params": [ { "name": "orderId", "value": "", "type": "path", "description": "The ID of the order to mark as complete" } ] }, "docs": "Call when an order is complete. An order can only be marked as complete if it hasn't already been marked as cancelled or complete." }, { "info": { "name": "Update order ETA", "type": "http" }, "http": { "method": "PUT", "url": "https://uk.api.just-eat.io/orders/:orderId/duedate", "params": [ { "name": "orderId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Use this to update the estimated time of arrival for an order (i.e. when you expect the customer to receive the food). NOTE: An initial estimate is given [upon acceptance](#/paths/~1orders~1{orderId}~1accept/put). This endpoint can be used to update that estimate.\n" }, { "info": { "name": "Ignore order", "type": "http" }, "http": { "method": "PUT", "url": "https://uk.api.just-eat.io/orders/:orderId/ignore", "params": [ { "name": "orderId", "value": "", "type": "path" } ] }, "docs": "Call when an order has been ignored by restaurant. An order can only be ignored if it hasn't previously been accepted, rejected, cancelled or ignored" }, { "info": { "name": "Mark order as ready for collection", "type": "http" }, "http": { "method": "POST", "url": "https://uk.api.just-eat.io/orders/:orderId/readyforcollection", "params": [ { "name": "orderId", "value": "", "type": "path", "description": "The ID of the order to mark as ready for collection" } ] }, "docs": "Call when a collection order is ready to be collected by the customer. An order can only be marked as ready for collection if it is a collection order in the accepted state." }, { "info": { "name": "Reject order", "type": "http" }, "http": { "method": "PUT", "url": "https://uk.api.just-eat.io/orders/:orderId/reject", "params": [ { "name": "orderId", "value": "", "type": "path" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Call when an order has been rejected. An order can only be rejected if it hasn't previously been accepted, rejected, cancelled or ignored" } ] } ], "bundled": true }