HAAT Integration Docs

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
businessIdrequired
integer

Same business as the PUT.

requestIdrequired
integer

From the PUT response.

RESPONSE BODY SCHEMA: application/json
requestIdrequired
integer
statusrequired
string

Pending, Success, Failed, or Skipped.

created
integer

New rows in this run.

updated
integer

Rows updated.

hidden
integer

Rows hidden.

removed
integer

Rows removed / soft-deleted (policy-dependent).

error
string | null

Null on success; message on failure.

Status values

StatusMeaning
PendingStill queued / running
SuccessApplied
FailedFailed — read error, fix payload, PUT again with the same ids
SkippedNot applied (e.g. sync disabled for business)

Responses

200 — Current sync status

Body includes status and counters.

401 / 403 — Auth failed

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

Request example
cURL
bash
curl "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"
}

Type to search…

↑↓ navigate↵ openesc close