HAAT Integration Docs

Get menu from POS

External — HAAT fetches the full restaurant menu from your POS.

GET/api/menu

External menu sync: HAAT calls your POS. Return the full menu as an array of categories. Keep PosId stable. en-US is required on names.

To read the menu HAAT already stores, use Get menu from HAAT.

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
X-Haat-Version: 1.0
HEADER SCHEMA
Authorizationrequired
string

Bearer <token>, or HMAC via X-Signature.

X-Haat-Versionrequired
string Default: 1.0

Always 1.0.

RESPONSE BODY SCHEMA: application/json

Return an array of categories. Each category has these fields:

PosIdrequired
string

Your POS category id. Keep it stable.

Namerequired
object

Localized names. en-US is required.

en-USrequired
string

English name.

he
string

Hebrew name.

ar
string

Arabic name.

ImageUrl
string | null

Category image URL.

Mealsrequired
object[]

Meals in this category.

PosIdrequired
string

Your POS meal id.

Namerequired
object

Localized names. Same shape as category Name.

Pricerequired
number

Unit price with decimal precision, for example 32.5.

Availablerequired
boolean

In stock or not.

ImageUrl
string | null

Meal image URL.

Groups
object[]

Addon / modifier groups on this meal.

PosIdrequired
string

Group id.

Namerequired
object

Localized group name.

Pricerequired
number

Group base price. Often 0.

Availablerequired
boolean

Group available or not.

ImageUrl
string | null

Group image URL.

Minrequired
integer

Minimum selections. 0 = optional.

Maxrequired
integer

Maximum selections allowed.

MealContentsrequired
object[]

Choices / ingredients in this group.

PosIdrequired
string

Content / ingredient id.

Namerequired
object

Localized content name.

Pricerequired
number

Additional price. 0 if free.

Availablerequired
boolean

In stock or not.

ImageUrl
string | null

Content image URL.

Dealsrequired
object[]

Deals in this category.

PosIdrequired
string

Your POS deal id.

Namerequired
object

Localized deal name.

Pricerequired
number

Deal price.

Availablerequired
boolean

In stock or not.

ImageUrl
string | null

Deal image URL.

MealGroups
object[]

Choice groups inside the deal (pick a meal, pick a drink, etc.).

PosIdrequired
string

Deal group id.

Namerequired
object

Localized group name.

Pricerequired
number

Group base price. Often 0.

Availablerequired
boolean

Group available or not.

ImageUrl
string | null

Group image URL.

Minrequired
integer

Minimum selections.

Maxrequired
integer

Maximum selections.

Mealsrequired
object[]

Meals offered in this deal group. Same meal shape (including optional Groups).

Responses

200 — Menu successfully retrieved

Full menu: categories with Meals, Deals, Groups, and MealContents.

401 — Invalid or missing authentication token

Check Bearer or X-Signature.

Request example
cURL
bash
curl https://pos.example.com/api/menu \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "X-Haat-Version: 1.0"
Response example
200
json
[
  {
    "PosId": "cat-1",
    "Name": { "en-US": "Burgers", "he": "בורגרים" },
    "ImageUrl": "https://example.com/categories/burgers.jpg",
    "Meals": [
      {
        "Name": { "en-US": "Burger", "he": "המבורגר" },
        "PosId": "meal-201",
        "Price": 32.5,
        "Available": true,
        "ImageUrl": "https://example.com/burger.png",
        "Groups": [
          {
            "Name": { "en-US": "Add-ons" },
            "PosId": "group-10",
            "Price": 0,
            "Available": true,
            "ImageUrl": null,
            "Max": 3,
            "Min": 0,
            "MealContents": [
              {
                "Name": { "en-US": "Cheese" },
                "PosId": "content-501",
                "Price": 3,
                "Available": true,
                "ImageUrl": null
              }
            ]
          }
        ]
      }
    ],
    "Deals": [
      {
        "Name": { "en-US": "Combo Deal", "he": "קומבו" },
        "PosId": "deal-100",
        "Price": 49.9,
        "Available": true,
        "ImageUrl": "https://example.com/deal.png",
        "MealGroups": [
          {
            "Name": { "en-US": "Choose a meal" },
            "PosId": "deal-group-1",
            "Price": 0,
            "Available": true,
            "ImageUrl": null,
            "Max": 1,
            "Min": 1,
            "Meals": [
              {
                "Name": { "en-US": "Burger" },
                "PosId": "meal-201",
                "Price": 0,
                "Available": true,
                "ImageUrl": null,
                "Groups": []
              }
            ]
          }
        ]
      }
    ]
  }
]

Type to search…

↑↓ navigate↵ openesc close