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: 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: stringDevice
- U U I D requiredUser's Device UUID
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Responses
- application/json
- 400
The
Device-UUIDheader 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"
}
]
}
]
}
}