Sync menu to HAAT
Push a restaurant menu to HAAT. Requires HAAT approval and configuration.
/api/pos/business/{businessId}/menuRequires 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
businessIdrequiredX-Api-KeyrequiredSend all four top-level arrays (empty arrays are fine). No products array and no kind field — the list name is the kind.
categoriesrequiredidrequirednamerequiredsortOrderitemsrequiredmealsrequireddealsrequiredEntry fields (item / meal / deal)
| Field | Required | Notes |
|---|---|---|
id | yes | Stable string you own |
categoryId | items/meals | Must match a category in this payload |
name | yes | Localized { en, ar, he, fr } |
description | no | Localized |
price | yes | Decimal base price |
available | no | omit/null = not tracked; true / false = stock |
imageUrl | no | HTTPS; applied on first create only |
groups | no | Default [] |
Groups and options
| Field | Notes |
|---|---|
minSelect | null / 0 = optional |
maxSelect | null = unlimited |
| Exactly K required | minSelect = 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
idlater → update. Newid→ 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.
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{
"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
}
]
}
]
}
]
}{
"requestId": 42,
"status": "Pending",
"message": "The menu was accepted and will be applied by the next sync run."
}