v1

latestOpenAPI 3.0.02026-07-1498671635.3 KB
Order Acceptance Webhooks
publicly-accessible

Acceptance requested

This webhook will be invoked whenever acceptance has been requested for the order.

post/acceptance-requested

Request body

Currencystring
CustomerNotesobject
FriendlyOrderReferencestring
IsTestboolean
OrderIdstring
PlacedDatestring date-time
TotalPricenumber

Example request

{
  "Currency": "GBP",
  "Customer": {
    "Id": 12345,
    "Name": "Bruce Wayne",
    "PreviousRestaurantOrderCount": 5,
    "PreviousTotalOrderCount": 83
  },
  "CustomerNotes": {
    "noteForDelivery": "delivery note",
    "noteForRestaurant": "restaurant note"
  },
  "FriendlyOrderReference": "REF0001",
  "Fulfilment": {
    "Address": {
      "City": "London",
      "Geolocation": {
        "Latitude": 51.51641,
        "Longitude": -0.103198
      },
      "Lines": [
        "Fleet Place House",
        "Fleet Pl"
      ],
      "PostalCode": "EC4M 7RD"
    },
    "CustomerDueAsap": false,
    "CustomerDueDate": "2018-03-10T14:45:28Z",
    "Method": "Delivery",
    "PhoneMaskingCode": "9999999",
    "PhoneNumber": "+441234567890",
    "PreparationTime": "0:23:32"
  },
  "IsTest": true,
  "Items": [
    {
      "Items": [
        {
          "Items": [],
          "Name": "Fries",
          "Quantity": 1,
          "Reference": "9876",
          "Synonym": "Regular",
          "UnitPrice": 0
        },
        {
          "Items": [],
          "Name": "Pepsi",
          "Quantity": 2,
          "Reference": "6789",
          "Synonym": "330ml",
          "UnitPrice": 0
        }
      ],
      "Name": "Chicken Box Meal",
      "Quantity": 2,
      "Reference": "1234",
      "Synonym": "",
      "TotalPrice": 10,
      "UnitPrice": 5
    },
    {
      "Items": [],
      "Name": "Milkshake",
      "Quantity": 1,
      "Reference": "4321",
      "Synonym": "",
      "TotalPrice": 7.25,
      "UnitPrice": 7.25
    }
  ],
  "OrderId": "ABCD654321",
  "Payment": {
    "Lines": [
      {
        "Paid": false,
        "Type": "AccountCredit",
        "Value": 19.25
      },
      {
        "Paid": true,
        "Type": "CreditCard",
        "Value": 19.25
      }
    ]
  },
  "PlacedDate": "2018-03-10T14:45:28Z",
  "PriceBreakdown": {
    "Discount": 0,
    "Fees": {
      "Delivery": 1,
      "Other": 0,
      "ServiceCharge": 0.5
    },
    "Items": 17.25,
    "Taxes": 3.85,
    "Tips": 0.5
  },
  "Restaurant": {
    "Address": {
      "City": "London",
      "Geolocation": {
        "Latitude": 51.4484,
        "Longitude": -0.1504
      },
      "Lines": [
        "Oldridge Road"
      ],
      "PostalCode": "SW12 8PW"
    },
    "Id": "I12345",
    "Name": "Just Eat Test Restaurant",
    "PhoneNumber": "+441200000000",
    "Refererence": "R99999",
    "TimeZone": "Australia/Sydney (IANA format)"
  },
  "Restrictions": [
    {
      "Type": "Alcohol"
    }
  ],
  "TotalPrice": 19.25
}

Response

Respond with a 200 status code to indicate that you have received the notification.

All 98 operations