v1
latestOpenAPI 3.0.02026-07-1498671635.3 KBOrder Delivery Webhooks
publicly-accessible
Order requires delivery acceptance
This webhook will be invoked when we have determined that an order is required acceptance for delivery. Upon receiving the request, the order should be scheduled for pickup by a courier/driver. We expect an immediate 201 response from this webhook to denote that you have received the request.
put/order-requires-delivery-acceptance
Request body
Example request
[
{
"BasketInfo": {
"BasketId": "ABCb8DzdnUy7G481b0JN5g",
"DeliveryCharge": 5,
"Discount": 4.78,
"Discounts": [
{
"Discount": 10,
"DiscountType": "Percent",
"Id": 21950,
"QualifyingValue": 4.78
}
],
"GroupedBasketItems": [
{
"BasketItem": {
"CombinedPrice": 3.58,
"Discounts": [
{
"Amount": 4.5,
"DiscountType": "Percent"
}
],
"MealParts": [
{
"GroupId": 1,
"MealPartId": 45822750,
"Name": "Any Sides?",
"OptionalAccessories": [
{
"Name": "Add Bacon",
"OptionalAccessoryId": 56168,
"Quantity": 1,
"UnitPrice": 0.5
}
],
"RequiredAccessories": [
{
"GroupId": 3,
"Name": "Coca-Cola Original Taste",
"RequiredAccessoryId": 225025,
"UnitPrice": 0.16
}
]
}
],
"MenuCardNumber": "1",
"MultiBuyDiscounts": [
{
"Amount": 4.5,
"DiscountType": "Percent"
}
],
"Name": "Mini Fillet Burger",
"OptionalAccessories": [
{
"Name": "Add Bacon",
"OptionalAccessoryId": 56168,
"Quantity": 1,
"UnitPrice": 0.5
}
],
"ProductId": 45858074,
"ProductTypeId": 428,
"RequiredAccessories": [
{
"GroupId": 3,
"Name": "Large Meal",
"RequiredAccessoryId": 225025,
"UnitPrice": 0.1
}
],
"UnitPrice": 1.79
},
"CombinedPrice": 3.58,
"MenuCardNumber": "1",
"Quantity": 2
}
],
"MenuId": 777890,
"SubTotal": 47.75,
"Total": 47.97
},
"CustomerInfo": {
"Address": "Fleet Place House, 2 Fleet Place, London",
"City": "London",
"DisplayPhoneNumber": "(01) 872 7863",
"Email": "contact@just-eat.com",
"Id": "123456",
"Latitude": 51.50015,
"LocationAccuracyDescription": "ROOFTOP",
"LocationSource": "GeodataGeocoder",
"Longitude": -0.12624,
"Name": "Just Eat",
"PhoneMaskingCode": "444333222",
"PhoneNumber": "018727863",
"Postcode": "EC4M 7RF",
"TimeZone": "GMT Standard Time"
},
"CustomerOrderId": 348322088,
"FriendlyOrderReference": "348322088",
"Id": "348322088",
"Order": {
"NoteToRestaurant": "Contact-free delivery",
"PickupNoticePeriod": "00:10:00"
},
"OrderId": "ijdhpy7bdusgtc28bapspa",
"OrderReference": "39cce3f0-0278-dd25-ae32-e8effe1ce4eb",
"PaymentInfo": {
"PaymentLines": [
{
"CardFee": 0.5,
"Value": 22.05
}
],
"Total": 22.55
},
"RestaurantInfo": {
"AddressLines": [
"Fleet Place House 2, Fleet Place, London"
],
"City": "London",
"DispatchMethod": "Phone",
"EmailAddress": "contact@testrestaurant.com",
"Id": "123456",
"Latitude": 51.50015,
"Longitude": -0.12624,
"Name": "Test Restaurant",
"PhoneNumber": "07123456789",
"PickupNotes": "Use the back entrance",
"Postcode": "EC4M 7RF"
}
}
]Response
In the event of successful handling of the request, a 201 status code should be returned, indicating acknowledgement of transmission success.