{"_id":"582c7058e4a4920f00ff0051","user":"5784f902f3a10c0e009b752e","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"},"__v":0,"project":"56c1e50bce02590d006091c9","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"},"parentDoc":null,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-29T08:24:25.352Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"REQUEST:\n\nSend us your order by making a HTTP POST request to our Orderconnect endpoint.\n\nDates are represented as strings and must contain UTC offset information\n\nPlease see the Examples section for samples with data.\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"Order\\n{\\n OrderReference (string), \\n FriendlyOrderReference (string), \\n RestaurantReference (string),\\n CustomerNote (string),\\n PlacedDate (string),\\n DueDate (string),\\n Fulfillment (Fulfillment),\\n Payment (Payment),\\n Customer (Customer),\\n Basket (Basket),\\n EventUpdateUri (string),\\n}\\n\\nFulfillment\\n{\\n PickupTime (string),\\n Method (string),\\n Table (string),\\n}\\n\\nPayment \\n{\\n   DriverTipValue (double),\\n   Total (double),\\n   CashOnDelivery (boolean),\\n   RestaurantTipValue (double),\\n   DeliveryCharge (double),\\n   CardCharges (double)\\n}\\n\\nCustomer \\n{\\n CustomerReference (string),\\n Email (string),\\n Name (string),\\n Address (Address),\\n PhoneNumber (string),\\n Location (Location)\\n}\\n\\nAddress\\n{\\n AddressLocality (string),\\n AddressRegion (string),\\n StreetAddress (string),\\n PostalCode (string),\\n}\\n\\nBasket\\n{\\n Items (array[BasketItem])\\n}\\n\\nBasketItem\\n{\\n ItemReference (string),\\n Name (string),\\n Description (string),\\n Comment(string),\\n Count (integer),\\n CostPerItem (double)\\n}\\n\\nLocation\\n{\\n Latitude (double),\\n Longitude (double)\\n}\",\n      \"language\": \"smarty\",\n      \"name\": \"OrderRequest\"\n    }\n  ]\n}\n[/block]\nRESPONSE:\n\n201 status code indicating acknowledgement of transmission, and the order.\n\nIf the ResponseContentType is \"application/hal+json\" then a list of links related to the order will also be returned.\n\nThe contract for the response is the same as for the request.\n\nIn the unlikely case of errors, JUST EAT respond with the appropriate status code and a meaningful message.","excerpt":"","slug":"new-order-json-contract","type":"basic","title":"Create Order"}
REQUEST: Send us your order by making a HTTP POST request to our Orderconnect endpoint. Dates are represented as strings and must contain UTC offset information Please see the Examples section for samples with data. [block:code] { "codes": [ { "code": "Order\n{\n OrderReference (string), \n FriendlyOrderReference (string), \n RestaurantReference (string),\n CustomerNote (string),\n PlacedDate (string),\n DueDate (string),\n Fulfillment (Fulfillment),\n Payment (Payment),\n Customer (Customer),\n Basket (Basket),\n EventUpdateUri (string),\n}\n\nFulfillment\n{\n PickupTime (string),\n Method (string),\n Table (string),\n}\n\nPayment \n{\n DriverTipValue (double),\n Total (double),\n CashOnDelivery (boolean),\n RestaurantTipValue (double),\n DeliveryCharge (double),\n CardCharges (double)\n}\n\nCustomer \n{\n CustomerReference (string),\n Email (string),\n Name (string),\n Address (Address),\n PhoneNumber (string),\n Location (Location)\n}\n\nAddress\n{\n AddressLocality (string),\n AddressRegion (string),\n StreetAddress (string),\n PostalCode (string),\n}\n\nBasket\n{\n Items (array[BasketItem])\n}\n\nBasketItem\n{\n ItemReference (string),\n Name (string),\n Description (string),\n Comment(string),\n Count (integer),\n CostPerItem (double)\n}\n\nLocation\n{\n Latitude (double),\n Longitude (double)\n}", "language": "smarty", "name": "OrderRequest" } ] } [/block] RESPONSE: 201 status code indicating acknowledgement of transmission, and the order. If the ResponseContentType is "application/hal+json" then a list of links related to the order will also be returned. The contract for the response is the same as for the request. In the unlikely case of errors, JUST EAT respond with the appropriate status code and a meaningful message.