GET Announcement

​

Returns the single article the brand has flagged as its announcement — the banner or takeover shown when the app opens.

It is one object, not a list, and it is null when the brand has nothing to announce. announcement_type tells you how the brand expects it to be presented.

Headers

  • Type of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Responses

  • application/json
Request Example for get/news/announcement
curl https://api-public-demo.menu.app/api/news/announcement \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'API-VERSION: ' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
  "status": "OK",
  "code": 200,
  "data": {
    "news": {
      "id": 44,
      "brand_id": 450,
      "title": "Holiday opening hours",
      "article": "<p>We close at 4pm on the 24th.</p>",
      "is_announcement": true,
      "announcement_type": 1,
      "position": 0,
      "state": 1
    }
  }
}