HAAT Integration Docs

Build menu

Return the full market catalog so HAAT can build the store menu.

GET/api/menu/build

HAAT calls your POS. Unit values: 1 = Countable, 2 = Weighable KG, 3 = Weighable Quantity.

Rate Limiting: If you send too many requests in a short time, you will receive a 429 Too Many Requests response.

Example:

integrator-token: YOUR_INTEGRATOR_TOKEN
organization-token: YOUR_ORGANIZATION_TOKEN
HEADER SCHEMA
integrator-tokenrequired
string

Shared across all HAAT markets for this integrator.

organization-tokenrequired
string

Identifies the specific market / store.

RESPONSE BODY SCHEMA: application/json

Return an array of products. Each product has these fields:

ProductIDrequired
integer

Unique POS id. Keep it stable.

ProdNameAr
string | null

Arabic name.

ProdNameHe
string | null

Hebrew name.

ProdNameEn
string | null

English name.

ProdNameFr
string | null

French name.

ProdDescAr
string | null

Arabic description.

ProdDescHe
string | null

Hebrew description.

ProdDescEn
string | null

English description.

Pricerequired
number

Number, for example 12.5.

Barcoderequired
string

Product barcode.

ImageURLrequired
string

Public image URL.

CategoryNameAr
string | null

Arabic category name.

CategoryNameHe
string | null

Hebrew category name.

CategoryNameEn
string | null

English category name.

SubCategoryNameAr
string | null

Arabic subcategory name.

SubCategoryNameHe
string | null

Hebrew subcategory name.

SubCategoryNameEn
string | null

English subcategory name.

Unitrequired
integer

1 Countable, 2 Weighable KG, 3 Weighable Quantity.

LimitPerOrder
integer | null

Max quantity per order. Can be null.

AvailableQuantity
integer | null

Stock quantity. Can be null.

Responses

200 — Menu products for the market

Array of products with the fields above.

401 — Missing or invalid tokens

Reject the request if either token is missing or wrong.

Request example
cURL
bash
curl https://pos.example.com/api/menu/build \
  -H "integrator-token: YOUR_INTEGRATOR_TOKEN" \
  -H "organization-token: YOUR_ORGANIZATION_TOKEN"
Response example
200
json
[{"ProductID":76868,"ProdNameEn":"Potato","Price":12.5,"Barcode":"7893dah97","ImageURL":"https://cdn.example.com/potato.jpg","Unit":2}]

Type to search…

↑↓ navigate↵ openesc close