Build menu
Return the full market catalog so HAAT can build the store menu.
GET
/api/menu/buildHAAT 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-tokenrequiredorganization-tokenrequiredRESPONSE BODY SCHEMA: application/json
Return an array of products. Each product has these fields:
ProductIDrequiredProdNameArProdNameHeProdNameEnProdNameFrProdDescArProdDescHeProdDescEnPricerequiredBarcoderequiredImageURLrequiredCategoryNameArCategoryNameHeCategoryNameEnSubCategoryNameArSubCategoryNameHeSubCategoryNameEnUnitrequiredLimitPerOrderAvailableQuantityResponses
200 — Menu products for the market
200 — Menu products for the market
Array of products with the fields above.
401 — Missing or invalid tokens
401 — Missing or invalid tokens
Reject the request if either token is missing or wrong.
Request example
cURL
bashcurl 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}]