GET Discount Tag Groups

​

Returns the tags the brand groups its offers by, so an offers screen can be filtered rather than presented as one long list.

Each group holds its own tags, and the tags are what discounts are labelled with.

This is a read-only catalogue but it still requires the Device-UUID header, like the rest of the discount endpoints.

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

  • User's Device UUID

  • Authorization header

  • Unique request identifier

Responses

  • application/json
  • The Device-UUID header is missing.

Request Example for get/discount-tag-groups
curl https://api-public-demo.menu.app/api/discount-tag-groups \
  --header 'Accept: application/json' \
  --header 'Application: application-key' \
  --header 'API-VERSION: ' \
  --header 'Device-UUID: 1234' \
  --header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937'
{
  "status": "OK",
  "code": 200,
  "data": {
    "discount_tag_groups": [
      {
        "id": 2,
        "name": "Occasion",
        "discount_tags": [
          {
            "id": 11,
            "name": "Breakfast"
          },
          {
            "id": 12,
            "name": "Late night"
          }
        ]
      }
    ]
  }
}