GET Customer Declarations

​

Returns the allergens and dietary preferences the customer has saved, so the menu can be filtered or flagged for them.

The same information also appears on the customer account payload, where dietary preferences are called dietary_preferences rather than food_types.

Path Parameters

  • Customer account ID. Must match the signed-in customer.

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
  • Missing or invalid token, or the path account is not the signed-in account.

Request Example for get/customer-accounts/{customer_account_id}/declarations
curl https://api-public-demo.menu.app/api/customer-accounts/9031/declarations \
  --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": {
    "declarations": {
      "allergens": [
        "milk",
        "peanuts"
      ],
      "food_types": [
        "vegan"
      ]
    }
  }
}