GET News

​

Returns the brand's news articles in the order the brand arranged them, for an in-app news or "what's on" feed.

An article can have discounts attached, which is how a brand runs a promotion off the back of a story — show them alongside the article and let the customer claim them.

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
curl https://api-public-demo.menu.app/api/news \
  --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": 31,
        "brand_id": 450,
        "title": "Breakfast is back",
        "article": "<p>Served until 11am, every day.</p>",
        "is_announcement": false,
        "announcement_type": null,
        "position": 1,
        "state": 1,
        "discounts": [],
        "image": null
      }
    ]
  }
}