GET Discount Cards

​

Lists the brand's discount cards — the membership or ID-card style discounts a customer can claim, such as a student or staff card.

The brand comes from your Application key, so there is nothing to pass. Only cards the brand has made visible are returned, in name order.

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/discount-cards
curl https://api-public-demo.menu.app/api/discount-cards \
  --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": {
    "discount_cards": [
      {
        "id": 3,
        "name": "Staff card",
        "is_visible": true
      },
      {
        "id": 4,
        "name": "Student card",
        "is_visible": true
      }
    ]
  }
}