Get allergens

GET /i/allergens

Returns a list of all possible allergens that can be added to a rich item. See Allergens Table for more details.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object

    Allergen

    • code string

      Allergen Code

    • translations array[object]

      List of translations

      Hide translations attributes Show translations attributes object
      • locale string

        Language locale (eg 'en' or 'en_US')

      • text string

        Translation in the language of the locale

GET /i/allergens
curl \
 -X GET https://api.lsk.lightspeed.app/i/allergens \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "code": "fish",
    "translations": [
      {
        "text": "Fish",
        "locale": "en"
      },
      {
        "text": "Poisson",
        "locale": "fr"
      }
    ]
  }
]