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: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique 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
}
}
}