Get Declarations

​

Returns the allergen and dietary vocabulary the NMG menu uses — the full list of ids a product can be tagged with, and their translated names.

Read it once and use it to build allergen filters and product labels. The ids are stable; the names follow Accept-Language.

The v2 list is shorter than the one the legacy menu used. Use this one for anything on the NMG product structure.

Headers

  • White Label Application Key

  • Locale the declaration names are translated into

Responses

  • application/json
Request Example for get/declarations
curl https://api-public-demo.menu.app/api/v2/declarations \
  --header 'Application: '
{
  "status": "OK",
  "code": 200,
  "data": {
    "declaration": {
      "allergens": [
        {
          "id": "milk",
          "translated_name": "Milk"
        },
        {
          "id": "eggs",
          "translated_name": "Eggs"
        },
        {
          "id": "fish",
          "translated_name": "Fish"
        },
        {
          "id": "shellfish",
          "translated_name": "Shellfish"
        },
        {
          "id": "tree_nuts",
          "translated_name": "Tree nuts"
        },
        {
          "id": "peanuts",
          "translated_name": "Peanuts"
        },
        {
          "id": "wheat",
          "translated_name": "Wheat"
        },
        {
          "id": "gluten",
          "translated_name": "Gluten"
        },
        {
          "id": "soybeans",
          "translated_name": "Soybeans"
        },
        {
          "id": "sesame",
          "translated_name": "Sesame"
        },
        {
          "id": "sulfites",
          "translated_name": "Sulfites"
        },
        {
          "id": "mustard",
          "translated_name": "Mustard"
        },
        {
          "id": "celery",
          "translated_name": "Celery"
        },
        {
          "id": "lupin",
          "translated_name": "Lupin"
        }
      ],
      "food_types": [
        {
          "id": "vegetarian",
          "translated_name": "Vegetarian"
        },
        {
          "id": "vegan",
          "translated_name": "Vegan"
        },
        {
          "id": "alcohol",
          "translated_name": "Alcohol"
        }
      ]
    }
  }
}