v1
latestOpenAPI 3.0.02026-07-1398671635.1 KBOrder Acceptance Webhooks
publicly-accessible
Acceptance requested
This webhook will be invoked whenever acceptance has been requested for the order.
post/acceptance-requested
Request body
Example request
{
"OrderId": "ABCD654321",
"FriendlyOrderReference": "REF0001",
"Currency": "GBP",
"TotalPrice": 19.25,
"Fulfilment": {
"Method": "Delivery",
"PhoneNumber": "+441234567890",
"PhoneMaskingCode": "9999999",
"CustomerDueDate": "2018-03-10T14:45:28Z",
"CustomerDueAsap": false,
"Address": {
"Lines": [
"Fleet Place House",
"Fleet Pl"
],
"City": "London",
"PostalCode": "EC4M 7RD",
"Geolocation": {
"Latitude": 51.51641,
"Longitude": -0.103198
}
},
"PreparationTime": "0:23:32"
},
"Payment": {
"Lines": [
{
"Type": "AccountCredit",
"Value": 19.25,
"Paid": false
},
{
"Type": "CreditCard",
"Value": 19.25,
"Paid": true
}
]
},
"Customer": {
"Id": 12345,
"Name": "Bruce Wayne",
"PreviousRestaurantOrderCount": 5,
"PreviousTotalOrderCount": 83
},
"Restrictions": [
{
"Type": "Alcohol"
}
],
"Items": [
{
"Reference": "1234",
"Name": "Chicken Box Meal",
"Synonym": "",
"Quantity": 2,
"UnitPrice": 5,
"TotalPrice": 10,
"Items": [
{
"Reference": "9876",
"Name": "Fries",
"Synonym": "Regular",
"Quantity": 1,
"UnitPrice": 0,
"Items": []
},
{
"Reference": "6789",
"Name": "Pepsi",
"Synonym": "330ml",
"Quantity": 2,
"UnitPrice": 0,
"Items": []
}
]
},
{
"Reference": "4321",
"Name": "Milkshake",
"Synonym": "",
"Quantity": 1,
"UnitPrice": 7.25,
"TotalPrice": 7.25,
"Items": []
}
],
"PriceBreakdown": {
"Discount": 0,
"Tips": 0.5,
"Taxes": 3.85,
"Items": 17.25,
"Fees": {
"Delivery": 1,
"ServiceCharge": 0.5,
"Other": 0
}
},
"PlacedDate": "2018-03-10T14:45:28Z",
"CustomerNotes": {
"noteForRestaurant": "restaurant note",
"noteForDelivery": "delivery note"
},
"Restaurant": {
"Id": "I12345",
"Refererence": "R99999",
"Name": "Just Eat Test Restaurant",
"Address": {
"Lines": [
"Oldridge Road"
],
"City": "London",
"PostalCode": "SW12 8PW",
"Geolocation": {
"Latitude": 51.4484,
"Longitude": -0.1504
}
},
"TimeZone": "Australia/Sydney (IANA format)",
"PhoneNumber": "+441200000000"
},
"IsTest": true
}Response
Respond with a 200 status code to indicate that you have received the notification.