{"_id":"586d07c78ae38419004cde5c","parentDoc":null,"version":{"_id":"582c7058e4a4920f00ff0045","project":"56c1e50bce02590d006091c9","__v":2,"createdAt":"2016-11-16T14:42:32.468Z","releaseDate":"2016-11-16T14:42:32.468Z","categories":["582c7058e4a4920f00ff0046","582c7058e4a4920f00ff0047","582c7058e4a4920f00ff0048","582c7058e4a4920f00ff0049","582c7058e4a4920f00ff004a","582c7058e4a4920f00ff004b","582c7058e4a4920f00ff004c","582c7058e4a4920f00ff004d","582c7058e4a4920f00ff004e","582c7058e4a4920f00ff004f","582d97124b2536250038b392"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"3.0.0","version":"3.0"},"project":"56c1e50bce02590d006091c9","user":"5809ea66629bf91900cd139f","__v":0,"category":{"_id":"582c7058e4a4920f00ff0047","version":"582c7058e4a4920f00ff0045","project":"56c1e50bce02590d006091c9","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-07-28T14:07:04.954Z","from_sync":false,"order":2,"slug":"orderconnect","title":"EPOS partners"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2017-01-04T14:33:43.554Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Just Eat expects you to implement a order status update endpoint so that we can let you know the how the order is coming along.\n\nREQUEST:\n\nOrderconnect will send a order status update event using the HTTP PUT. If the order is being delivered it update will also contain delivery details.\n\nstring(32) - denotes maximum string length (in this case 32)\n\nThe endpoint should take the order Id as part of the url. \ne.g. order/{id}/driver/status\n\nRequest body Json format:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"DriverStatusUpdated\\n{\\n  Event: (string),\\n  Timestamp: (string(33)),\\n  EstimatedPickupTime: (string(33))\\n  EstimatedDeliveryTime: (string(33))\\n  DriverName: (string)\\n  DriverContactNumber: (string)\\n  Vehicle: (string)\\n  VehicleRegistration: (string)\\n}\",\n      \"language\": \"smarty\",\n      \"name\": \"JSON\"\n    }\n  ]\n}\n[/block]\nRESPONSE:\n\n200 status code indicating acknowledgement of transmission. \n\nIn the unlikely case of unknown errors, JUST EAT will log raw response, if possible, it should have the following format:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  Timestamp (string),\\n  Message (string),\\n  Details (string),\\n  OrderId (string, optional)\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"receive-driver-status-update","type":"basic","title":"Receive Order Status"}

Receive Order Status


Just Eat expects you to implement a order status update endpoint so that we can let you know the how the order is coming along. REQUEST: Orderconnect will send a order status update event using the HTTP PUT. If the order is being delivered it update will also contain delivery details. string(32) - denotes maximum string length (in this case 32) The endpoint should take the order Id as part of the url. e.g. order/{id}/driver/status Request body Json format: [block:code] { "codes": [ { "code": "DriverStatusUpdated\n{\n Event: (string),\n Timestamp: (string(33)),\n EstimatedPickupTime: (string(33))\n EstimatedDeliveryTime: (string(33))\n DriverName: (string)\n DriverContactNumber: (string)\n Vehicle: (string)\n VehicleRegistration: (string)\n}", "language": "smarty", "name": "JSON" } ] } [/block] RESPONSE: 200 status code indicating acknowledgement of transmission. In the unlikely case of unknown errors, JUST EAT will log raw response, if possible, it should have the following format: [block:code] { "codes": [ { "code": "{\n Timestamp (string),\n Message (string),\n Details (string),\n OrderId (string, optional)\n}", "language": "json" } ] } [/block]