{"_id":"582c7058e4a4920f00ff005d","project":"56c1e50bce02590d006091c9","user":"56c2ea5f2c90fa17001b8383","__v":0,"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"},"parentDoc":null,"category":{"_id":"582c7058e4a4920f00ff004d","__v":0,"version":"582c7058e4a4920f00ff0045","project":"56c1e50bce02590d006091c9","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-26T12:33:01.341Z","from_sync":false,"order":6,"slug":"examples","title":"Examples"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-26T12:41:40.697Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/ut3uwV2iTEyoo2QhElYZ_10555159.png\",\n        \"10555159.png\",\n        \"315\",\n        \"490\",\n        \"#762c0c\",\n        \"\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"Id\\\": \\\"e25j3rrx3kmcvbzdpktgjq\\\",\\n  \\\"CustomerOrderId\\\": 10555159,\\n  \\\"FriendlyOrderReference\\\": \\\"GH46BHX7\\\",\\n  \\\"OrderReference\\\": \\\"JKFDHFKJDSFGARR435HKJ\\\",\\n  \\\"Order\\\": {\\n    \\\"NoteToRestaurant\\\": null,\\n    \\\"ServiceType\\\": \\\"Delivery\\\",\\n    \\\"PlacedDate\\\": \\\"2015-04-28T12:28:15.524+00:00\\\",\\n    \\\"DueDate\\\": \\\"2015-04-28T13:15:00+00:00\\\",\\n\\t  \\\"DueDateWithUtcOffset\\\": \\\"2015-04-28T13:15:00+01:00\\\",\\n    \\\"InitialDueDate\\\": \\\"2015-04-28T13:15:00+00:00\\\",\\n\\t  \\\"InitialDueDateWithUtcOffset\\\": \\\"2015-04-28T13:15:00+01:00\\\",\\n    \\\"PromptAsap\\\": true\\n  },\\n  \\\"Restaurant\\\": {\\n    \\\"Id\\\": \\\"525\\\",\\n    \\\"Name\\\": \\\"Just Pizzas\\\",\\n    \\\"PhoneNumber\\\": \\\"01234567890\\\",\\n    \\\"AddressLines\\\": [\\n      \\\"15 Test Street\\\"\\n    ],\\n    \\\"City\\\": \\\"London\\\",\\n    \\\"Postcode\\\": \\\"EC4M 7rf\\\",\\n    \\\"Longitude\\\": -2.611497,\\n\\t\\t\\\"Latitude\\\": 51.441156,\\n    \\\"DispatchMethod\\\": \\\"JEPosV1\\\",\\n    \\\"EmailAddress\\\": \\\"\\\"\\n  },\\n  \\\"Payment\\\": {\\n    \\\"PaymentLines\\\": [\\n      {\\n        \\\"Type\\\": \\\"Cash\\\",\\n        \\\"CardFee\\\": 0,\\n        \\\"Value\\\": 18.35\\n      }\\n    ],\\n    \\\"Total\\\": 18.35,\\n    \\\"TotalComplementary\\\": 0,\\n    \\\"PaidDate\\\": \\\"2015-04-28T12:28:19.6268+00:00\\\",\\n    \\\"CashOnDelivery\\\": true\\n  },\\n  \\\"Customer\\\": {\\n    \\\"Id\\\": \\\"1957127\\\",\\n    \\\"Email\\\": \\\"new.user:::at:::just-eat.com\\\",\\n    \\\"Name\\\": \\\"asd\\\",\\n    \\\"Address\\\": \\\"Test, Test\\\",\\n    \\\"City\\\": \\\"Test\\\",\\n    \\\"Postcode\\\": \\\"SE16 1DD\\\",\\n    \\\"Longitude\\\": -2.611767,\\n\\t\\t\\\"Latitude\\\": 51.479456,\\n    \\\"PhoneNumber\\\": \\\"1234567890\\\",\\n    \\\"TimeZone\\\": \\\"GMT Standard Time\\\",\\n    \\\"PreviousRestuarantOrderCount\\\": 0\\n  },\\n  \\\"Basket\\\": {\\n    \\\"BasketId\\\": \\\"Cq20lJYyIkOSDEB2LqBOKA\\\",\\n    \\\"MenuId\\\": 1649,\\n    \\\"Discounts\\\": [\\n      {\\n        \\\"Id\\\": 31410,\\n        \\\"Discount\\\": 20,\\n        \\\"DiscountType\\\": \\\"Percent\\\",\\n        \\\"QualifyingValue\\\": 30\\n      }\\n    ],\\n    \\\"SubTotal\\\": 18.35,\\n    \\\"ToSpend\\\": 0,\\n    \\\"MultiBuyDiscount\\\": 0,\\n    \\\"Discount\\\": 0,\\n    \\\"DeliveryCharge\\\": 0,\\n    \\\"Total\\\": 18.35,\\n    \\\"GroupedBasketItems\\\": [\\n      {\\n        \\\"BasketItem\\\": {\\n          \\\"ProductId\\\": 108522,\\n          \\\"ProductTypeId\\\": 15,\\n          \\\"MenuCardNumber\\\": \\\"6\\\",\\n          \\\"Name\\\": \\\"Meaty One\\\",\\n          \\\"Synonym\\\": \\\"12\\\\\\\" Deep Pan\\\",\\n          \\\"UnitPrice\\\": 11.95,\\n          \\\"CombinedPrice\\\": 18.35,\\n          \\\"MealParts\\\": [],\\n          \\\"OptionalAccessories\\\": [\\n            {\\n              \\\"OptionalAccessoryId\\\": 36,\\n              \\\"Quantity\\\": 2,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Fresh Garlic\\\"\\n            },\\n            {\\n              \\\"OptionalAccessoryId\\\": 41,\\n              \\\"Quantity\\\": 1,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Black Olives\\\"\\n            },\\n            {\\n              \\\"OptionalAccessoryId\\\": 48,\\n              \\\"Quantity\\\": 1,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Beef\\\"\\n            },\\n            {\\n              \\\"OptionalAccessoryId\\\": 136,\\n              \\\"Quantity\\\": 1,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Fresh tomatoes\\\"\\n            },\\n            {\\n              \\\"OptionalAccessoryId\\\": 138,\\n              \\\"Quantity\\\": 2,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Egg\\\"\\n            },\\n            {\\n              \\\"OptionalAccessoryId\\\": 194,\\n              \\\"Quantity\\\": 1,\\n              \\\"UnitPrice\\\": 0.8,\\n              \\\"Name\\\": \\\"Chicken\\\"\\n            }\\n          ],\\n          \\\"RequiredAccessories\\\": [],\\n          \\\"Discounts\\\": [],\\n          \\\"MultiBuyDiscounts\\\": []\\n        },\\n        \\\"Quantity\\\": 1,\\n        \\\"CombinedPrice\\\": 18.35,\\n        \\\"OrderSubId\\\": 0,\\n        \\\"MenuCardNumber\\\": null\\n      }\\n    ]\\n  },\\n  \\\"IsAMiniFistPumpOrder\\\": false\\n}\",\n      \"language\": \"json\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"item-with-accessories","type":"basic","title":"Item with accessories"}

Item with accessories


[block:image] { "images": [ { "image": [ "https://files.readme.io/ut3uwV2iTEyoo2QhElYZ_10555159.png", "10555159.png", "315", "490", "#762c0c", "" ] } ] } [/block] [block:code] { "codes": [ { "code": "{\n \"Id\": \"e25j3rrx3kmcvbzdpktgjq\",\n \"CustomerOrderId\": 10555159,\n \"FriendlyOrderReference\": \"GH46BHX7\",\n \"OrderReference\": \"JKFDHFKJDSFGARR435HKJ\",\n \"Order\": {\n \"NoteToRestaurant\": null,\n \"ServiceType\": \"Delivery\",\n \"PlacedDate\": \"2015-04-28T12:28:15.524+00:00\",\n \"DueDate\": \"2015-04-28T13:15:00+00:00\",\n\t \"DueDateWithUtcOffset\": \"2015-04-28T13:15:00+01:00\",\n \"InitialDueDate\": \"2015-04-28T13:15:00+00:00\",\n\t \"InitialDueDateWithUtcOffset\": \"2015-04-28T13:15:00+01:00\",\n \"PromptAsap\": true\n },\n \"Restaurant\": {\n \"Id\": \"525\",\n \"Name\": \"Just Pizzas\",\n \"PhoneNumber\": \"01234567890\",\n \"AddressLines\": [\n \"15 Test Street\"\n ],\n \"City\": \"London\",\n \"Postcode\": \"EC4M 7rf\",\n \"Longitude\": -2.611497,\n\t\t\"Latitude\": 51.441156,\n \"DispatchMethod\": \"JEPosV1\",\n \"EmailAddress\": \"\"\n },\n \"Payment\": {\n \"PaymentLines\": [\n {\n \"Type\": \"Cash\",\n \"CardFee\": 0,\n \"Value\": 18.35\n }\n ],\n \"Total\": 18.35,\n \"TotalComplementary\": 0,\n \"PaidDate\": \"2015-04-28T12:28:19.6268+00:00\",\n \"CashOnDelivery\": true\n },\n \"Customer\": {\n \"Id\": \"1957127\",\n \"Email\": \"new.user@just-eat.com\",\n \"Name\": \"asd\",\n \"Address\": \"Test, Test\",\n \"City\": \"Test\",\n \"Postcode\": \"SE16 1DD\",\n \"Longitude\": -2.611767,\n\t\t\"Latitude\": 51.479456,\n \"PhoneNumber\": \"1234567890\",\n \"TimeZone\": \"GMT Standard Time\",\n \"PreviousRestuarantOrderCount\": 0\n },\n \"Basket\": {\n \"BasketId\": \"Cq20lJYyIkOSDEB2LqBOKA\",\n \"MenuId\": 1649,\n \"Discounts\": [\n {\n \"Id\": 31410,\n \"Discount\": 20,\n \"DiscountType\": \"Percent\",\n \"QualifyingValue\": 30\n }\n ],\n \"SubTotal\": 18.35,\n \"ToSpend\": 0,\n \"MultiBuyDiscount\": 0,\n \"Discount\": 0,\n \"DeliveryCharge\": 0,\n \"Total\": 18.35,\n \"GroupedBasketItems\": [\n {\n \"BasketItem\": {\n \"ProductId\": 108522,\n \"ProductTypeId\": 15,\n \"MenuCardNumber\": \"6\",\n \"Name\": \"Meaty One\",\n \"Synonym\": \"12\\\" Deep Pan\",\n \"UnitPrice\": 11.95,\n \"CombinedPrice\": 18.35,\n \"MealParts\": [],\n \"OptionalAccessories\": [\n {\n \"OptionalAccessoryId\": 36,\n \"Quantity\": 2,\n \"UnitPrice\": 0.8,\n \"Name\": \"Fresh Garlic\"\n },\n {\n \"OptionalAccessoryId\": 41,\n \"Quantity\": 1,\n \"UnitPrice\": 0.8,\n \"Name\": \"Black Olives\"\n },\n {\n \"OptionalAccessoryId\": 48,\n \"Quantity\": 1,\n \"UnitPrice\": 0.8,\n \"Name\": \"Beef\"\n },\n {\n \"OptionalAccessoryId\": 136,\n \"Quantity\": 1,\n \"UnitPrice\": 0.8,\n \"Name\": \"Fresh tomatoes\"\n },\n {\n \"OptionalAccessoryId\": 138,\n \"Quantity\": 2,\n \"UnitPrice\": 0.8,\n \"Name\": \"Egg\"\n },\n {\n \"OptionalAccessoryId\": 194,\n \"Quantity\": 1,\n \"UnitPrice\": 0.8,\n \"Name\": \"Chicken\"\n }\n ],\n \"RequiredAccessories\": [],\n \"Discounts\": [],\n \"MultiBuyDiscounts\": []\n },\n \"Quantity\": 1,\n \"CombinedPrice\": 18.35,\n \"OrderSubId\": 0,\n \"MenuCardNumber\": null\n }\n ]\n },\n \"IsAMiniFistPumpOrder\": false\n}", "language": "json" } ] } [/block]