v1

latestOpenAPI 3.0.02026-07-1398671635.1 KB
Restaurant Webhooks
publicly-accessible

Menu ingestion complete

Callback to confirm that an attempt to ingest a menu has completed either successfully or unsuccessfully

post/menu-ingestion-complete

Request body

tenant'au' | 'dk' | 'es' | 'ie' | 'it' | 'no' | 'uk' | 'nz' enum

Country code for the market the restaurant is in

restaurantIdstring

The Just Eat restaurant ID

timestampstring date-time

The ISO-8601 datetime at which the menu ingestion completed

result'success' | 'fail' enum

The result of the menu ingestion process

correlationIdstring

The ID of the execution which has been completed

Example request

{
  "tenant": "uk",
  "restaurantId": "123456",
  "timestamp": "2020-01-01T00:00:00Z",
  "result": "fail",
  "correlationId": "64bef5ee-7265-47f8-9aee-28bc74f00b13",
  "fault": {
    "id": "70e307df-0156-4d3c-ab92-dd57a103350b",
    "errors": [
      {
        "code": "123",
        "description": "Invalid variation: 15237d6c-c866-55da-9e61-b4f59dcab9ae - variations must be associated with at least one availability"
      },
      {
        "code": "145",
        "description": "Invalid availability ID: menu-105369-availabilities - availability IDs must be integers"
      }
    ]
  }
}

Response

OK