Get menu sync status
Poll the outcome of a Sync menu to HAAT request.
GET
/api/pos/business/{businessId}/menu-sync-status/{requestId}Poll the result of a previous Sync menu to HAAT (PUT).
Keep polling while Pending. Do not send another PUT unless you want another sync run.
Suggested interval: every 2–5 seconds (allow more time for large menus).
Example:
X-Api-Key: YOUR_API_KEY
PATH SCHEMA
businessIdrequiredrequestIdrequiredRESPONSE BODY SCHEMA: application/json
requestIdrequiredstatusrequiredcreatedupdatedhiddenremovederrorStatus values
| Status | Meaning |
|---|---|
Pending | Still queued / running |
Success | Applied |
Failed | Failed — read error, fix payload, PUT again with the same ids |
Skipped | Not applied (e.g. sync disabled for business) |
Responses
200 — Current sync status
200 — Current sync status
Body includes status and counters.
401 / 403 — Auth failed
401 / 403 — Auth failed
Missing/invalid key, or POS not authorized for this business.
Request example
cURL
bashcurl "http://ext-integration.haat-delivery.io/api/pos/business/1071/menu-sync-status/42" \
-H "X-Api-Key: YOUR_API_KEY"Response example
200 Success
json{
"requestId": 42,
"status": "Success",
"created": 10,
"updated": 5,
"hidden": 2,
"removed": 0,
"error": null
}200 Pending
json{
"requestId": 42,
"status": "Pending",
"created": 0,
"updated": 0,
"hidden": 0,
"removed": 0,
"error": null
}200 Failed
json{
"requestId": 42,
"status": "Failed",
"created": 0,
"updated": 0,
"hidden": 0,
"removed": 0,
"error": "Example mapping or persistence error"
}