HAAT Integration Docs

Sync menu to HAAT

Push a restaurant menu to HAAT. Requires HAAT approval and configuration.

PUT/api/pos/business/{businessId}/menu

Requires HAAT approval. Ask HAAT to enable and configure menu sync for your POS / business before integrating.

You push the restaurant menu HAAT should apply. Application is async. A 200 with Pending means queued — not live yet. Poll Get menu sync status.

This is not Get menu from HAAT (read) and not Get menu from POS (HAAT pulls from you).

Example:

X-Api-Key: YOUR_API_KEY
PATH SCHEMA
businessIdrequired
integer

HAAT business id certificated to your POS.

HEADER SCHEMA
X-Api-Keyrequired
string

API key issued by HAAT for your POS.

REQUEST BODY SCHEMA: application/json

Send all four top-level arrays (empty arrays are fine). No products array and no kind field — the list name is the kind.

categoriesrequired
object[]

Categories for items and meals.

idrequired
string

Stable category id you own.

namerequired
object

Localized names: en, ar, he, fr.

sortOrder
integer

Display order.

itemsrequired
object[]

Sold as-is. Requires categoryId. Usually groups: [].

mealsrequired
object[]

Configurable products. Requires categoryId. groups[].options = modifiers.

dealsrequired
object[]

Bundles / combos. Deal categoryId is ignored. Each deal option id must equal an items[] or meals[] id in this payload.

Entry fields (item / meal / deal)

FieldRequiredNotes
idyesStable string you own
categoryIditems/mealsMust match a category in this payload
nameyesLocalized { en, ar, he, fr }
descriptionnoLocalized
priceyesDecimal base price
availablenoomit/null = not tracked; true / false = stock
imageUrlnoHTTPS; applied on first create only
groupsnoDefault []

Groups and options

FieldNotes
minSelectnull / 0 = optional
maxSelectnull = unlimited
Exactly K requiredminSelect = maxSelect = K

Option on a meal: your modifier id.
Option on a deal: must equal an item/meal id in the same PUT.

Identity

  • Same id later → update. New id → create. Changed id → duplicate.
  • Numeric string ids may also match an existing HAAT PK if you already know it.
  • Each sync overwrites name, description, and meal/deal structure from your body.

Responses

200 — Accepted (queued)

status is Pending. Menu is not live yet — poll Get menu sync status with requestId.

400 — Validation failed

Payload rejected before queue.

401 / 403 — Auth failed

Missing/invalid key, or POS not authorized for this businessId.

Request example
cURL
bash
curl -X PUT "http://ext-integration.haat-delivery.io/api/pos/business/1071/menu" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d @menu.json
Body
json
{
  "categories": [
    {
      "id": "cat-drinks",
      "name": { "en": "Drinks", "ar": "مشروبات", "he": "משקאות", "fr": "Boissons" },
      "sortOrder": 1
    },
    {
      "id": "cat-burgers",
      "name": { "en": "Burgers", "ar": "برغر", "he": "המבורגרים", "fr": "Burgers" },
      "sortOrder": 2
    }
  ],
  "items": [
    {
      "id": "item-cola",
      "categoryId": "cat-drinks",
      "name": { "en": "Cola", "ar": "كولا", "he": "קולה", "fr": "Cola" },
      "description": { "en": "Soft drink", "ar": "مشروب غازي", "he": "שתייה קלה", "fr": "Boisson gazeuse" },
      "price": 8.5,
      "available": true,
      "imageUrl": "https://example.com/cola.jpg",
      "groups": []
    }
  ],
  "meals": [
    {
      "id": "meal-burger",
      "categoryId": "cat-burgers",
      "name": { "en": "Classic Burger", "ar": "برغر كلاسيك", "he": "המבורגר קלאסי", "fr": "Burger classique" },
      "description": { "en": "Beef burger with choices", "ar": "برغر لحم مع خيارات", "he": "המבורגר בקר עם תוספות", "fr": "Burger boeuf avec options" },
      "price": 42,
      "available": true,
      "imageUrl": "https://example.com/burger.jpg",
      "groups": [
        {
          "id": "grp-size",
          "name": { "en": "Size", "ar": "الحجم", "he": "גודל", "fr": "Taille" },
          "minSelect": 1,
          "maxSelect": 1,
          "options": [
            {
              "id": "opt-size-regular",
              "name": { "en": "Regular", "ar": "عادي", "he": "רגיל", "fr": "Normal" },
              "price": 0,
              "defaultSelected": true,
              "maxSelectable": 1,
              "available": true,
              "imageUrl": null
            },
            {
              "id": "opt-size-large",
              "name": { "en": "Large", "ar": "كبير", "he": "גדול", "fr": "Grand" },
              "price": 5,
              "defaultSelected": false,
              "maxSelectable": 1,
              "available": true,
              "imageUrl": null
            }
          ]
        },
        {
          "id": "grp-extras",
          "name": { "en": "Extras", "ar": "إضافات", "he": "תוספות", "fr": "Extras" },
          "minSelect": 0,
          "maxSelect": 3,
          "options": [
            {
              "id": "opt-cheese",
              "name": { "en": "Cheese", "ar": "جبنة", "he": "גבינה", "fr": "Fromage" },
              "price": 3,
              "defaultSelected": false,
              "maxSelectable": 2,
              "available": true,
              "imageUrl": null
            }
          ]
        }
      ]
    }
  ],
  "deals": [
    {
      "id": "deal-combo",
      "name": { "en": "Burger Combo", "ar": "كومبو برغر", "he": "קומبو המבורגר", "fr": "Combo burger" },
      "description": { "en": "Burger + drink", "ar": "برغر + مشروب", "he": "המבורגר + שתייה", "fr": "Burger + boisson" },
      "price": 48,
      "available": true,
      "imageUrl": "https://example.com/combo.jpg",
      "groups": [
        {
          "id": "grp-deal-main",
          "name": { "en": "Main", "ar": "رئيسي", "he": "עיקרי", "fr": "Principal" },
          "minSelect": 1,
          "maxSelect": 1,
          "options": [
            {
              "id": "meal-burger",
              "name": { "en": "Classic Burger", "ar": "برغر كلاسيك", "he": "המבורגר קלאסי", "fr": "Burger classique" },
              "price": 0,
              "defaultSelected": true,
              "maxSelectable": 1,
              "available": true,
              "imageUrl": null
            }
          ]
        },
        {
          "id": "grp-deal-drink",
          "name": { "en": "Drink", "ar": "مشروب", "he": "שתייה", "fr": "Boisson" },
          "minSelect": 1,
          "maxSelect": 1,
          "options": [
            {
              "id": "item-cola",
              "name": { "en": "Cola", "ar": "كولا", "he": "קולה", "fr": "Cola" },
              "price": 0,
              "defaultSelected": true,
              "maxSelectable": 1,
              "available": true,
              "imageUrl": null
            }
          ]
        }
      ]
    }
  ]
}
Response example
200
json
{
  "requestId": 42,
  "status": "Pending",
  "message": "The menu was accepted and will be applied by the next sync run."
}

Type to search…

↑↓ navigate↵ openesc close