{"_id":"582c7058e4a4920f00ff0062","__v":0,"parentDoc":null,"user":"5784f902f3a10c0e009b752e","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"},"project":"56c1e50bce02590d006091c9","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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-07-29T10:41:19.386Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":5,"body":"REQUEST and RESPONSE use the same contract.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"EventUpdateUri\\\": \\\"http://example.com/test/events\\\",\\n  \\\"OrderReference\\\": \\\"Test partner order 903fe0e10ebc4577a16021f55ab6335c\\\",\\n  \\\"CustomerNote\\\": \\\"Test customer note\\\",\\n  \\\"PlacedDate\\\": \\\"2016-10-21T15:04:31.8442+00:00\\\",\\n  \\\"DueDate\\\": \\\"2016-10-21T16:04:31.8442+00:00\\\",\\n  \\\"Fulfillment\\\": {\\n    \\\"PickupTime\\\": \\\"2016-10-21T15:49:31.8442+00:00\\\",\\n    \\\"Method\\\": \\\"Test delivery method\\\"\\n  },\\n  \\\"RestaurantReference\\\": \\\"forty-two\\\",\\n  \\\"Payment\\\": {\\n    \\\"DriverTipValue\\\": 3.33,\\n    \\\"Total\\\": 12.34,\\n    \\\"CashOnDelivery\\\": false,\\n    \\\"RestaurantTipValue\\\": 0.0,\\n    \\\"DeliveryCharge\\\": 0.0,\\n    \\\"CardCharges\\\": 0.0\\n  },\\n  \\\"Customer\\\": {\\n    \\\"CustomerReference\\\": \\\"Test customer reference\\\",\\n    \\\"Email\\\": \\\"test:::at:::example.com\\\",\\n    \\\"Name\\\": \\\"Test customer name\\\",\\n    \\\"Address\\\": {\\n      \\\"AddressLocality\\\": \\\"Test address locality\\\",\\n      \\\"AddressRegion\\\": \\\"Test address region\\\",\\n      \\\"StreetAddress\\\": \\\"Test street address\\\",\\n      \\\"PostalCode\\\": \\\"AR51 1AA\\\"\\n    },\\n    \\\"PhoneNumber\\\": \\\"Test phone number\\\",\\n    \\\"Location\\\": {\\n      \\\"Latitude\\\": 0.1,\\n      \\\"Longitude\\\": 0.2\\n    }\\n  },\\n  \\\"Basket\\\": {\\n    \\\"Items\\\": [\\n      {\\n        \\\"ItemReference\\\": \\\"Test item reference\\\",\\n        \\\"Name\\\": \\\"Test item name\\\",\\n        \\\"Description\\\": \\\"Test description\\\",\\n        \\\"Comment\\\": \\\"Test comment\\\",\\n        \\\"Count\\\": 1,\\n        \\\"CostPerItem\\\": 3.33\\n      },\\n      {\\n        \\\"ItemReference\\\": \\\"Test item reference\\\",\\n        \\\"Name\\\": \\\"Test item name\\\",\\n        \\\"Description\\\": \\\"Test description\\\",\\n        \\\"Comment\\\": \\\"Test comment\\\",\\n        \\\"Count\\\": 1,\\n        \\\"CostPerItem\\\": 3.33\\n      },\\n      {\\n        \\\"ItemReference\\\": \\\"Test item reference\\\",\\n        \\\"Name\\\": \\\"Test item name\\\",\\n        \\\"Description\\\": \\\"Test description\\\",\\n        \\\"Comment\\\": \\\"Test comment\\\",\\n        \\\"Count\\\": 1,\\n        \\\"CostPerItem\\\": 3.33\\n      }\\n    ]\\n  }\\n}\",\n      \"language\": \"json\",\n      \"name\": null\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"sending-an-order","type":"basic","title":"Creating an order"}
REQUEST and RESPONSE use the same contract. [block:code] { "codes": [ { "code": "{\n \"EventUpdateUri\": \"http://example.com/test/events\",\n \"OrderReference\": \"Test partner order 903fe0e10ebc4577a16021f55ab6335c\",\n \"CustomerNote\": \"Test customer note\",\n \"PlacedDate\": \"2016-10-21T15:04:31.8442+00:00\",\n \"DueDate\": \"2016-10-21T16:04:31.8442+00:00\",\n \"Fulfillment\": {\n \"PickupTime\": \"2016-10-21T15:49:31.8442+00:00\",\n \"Method\": \"Test delivery method\"\n },\n \"RestaurantReference\": \"forty-two\",\n \"Payment\": {\n \"DriverTipValue\": 3.33,\n \"Total\": 12.34,\n \"CashOnDelivery\": false,\n \"RestaurantTipValue\": 0.0,\n \"DeliveryCharge\": 0.0,\n \"CardCharges\": 0.0\n },\n \"Customer\": {\n \"CustomerReference\": \"Test customer reference\",\n \"Email\": \"test@example.com\",\n \"Name\": \"Test customer name\",\n \"Address\": {\n \"AddressLocality\": \"Test address locality\",\n \"AddressRegion\": \"Test address region\",\n \"StreetAddress\": \"Test street address\",\n \"PostalCode\": \"AR51 1AA\"\n },\n \"PhoneNumber\": \"Test phone number\",\n \"Location\": {\n \"Latitude\": 0.1,\n \"Longitude\": 0.2\n }\n },\n \"Basket\": {\n \"Items\": [\n {\n \"ItemReference\": \"Test item reference\",\n \"Name\": \"Test item name\",\n \"Description\": \"Test description\",\n \"Comment\": \"Test comment\",\n \"Count\": 1,\n \"CostPerItem\": 3.33\n },\n {\n \"ItemReference\": \"Test item reference\",\n \"Name\": \"Test item name\",\n \"Description\": \"Test description\",\n \"Comment\": \"Test comment\",\n \"Count\": 1,\n \"CostPerItem\": 3.33\n },\n {\n \"ItemReference\": \"Test item reference\",\n \"Name\": \"Test item name\",\n \"Description\": \"Test description\",\n \"Comment\": \"Test comment\",\n \"Count\": 1,\n \"CostPerItem\": 3.33\n }\n ]\n }\n}", "language": "json", "name": null } ] } [/block]