HAAT Integration Docs

Update working hours

Replace the weekly working hours for a business.

PUT/api/pos/business/{businessId}/working-hours

Full replacement. Any day you leave out is treated as closed. day: 1 = Sunday … 7 = Saturday. Times are HH:mm UTC.

To read the schedule after an update, call Get working hours. GET uses the same days / day / hours / type / fromHour / toHour shape and the same UTC HH:mm convention. GET does not return a requestId.

Example:

X-Api-Key: YOUR_API_KEY
PATH SCHEMA
businessIdrequired
integer

HAAT business id from List businesses.

REQUEST BODY SCHEMA: application/json
daysrequired
object[]

Weekly hours. Any day you leave out is treated as closed. Do not send type: 1; omit the day instead.

dayrequired
integer

1 Sunday … 7 Saturday.

type
integer

Optional numeric enum (not a string). Default 0 if omitted. See table below.

hours
object[]

UTC ranges. Must not overlap. Required when type is 0; empty / not required when type is 2.

fromHourrequired
string

HH:mm UTC, 24-hour clock. Example: 08:00.

toHourrequired
string

HH:mm UTC, 24-hour clock. Example: 14:00.

type values

typeMeaning on PUT
0Open with specific hours (hours required, one or more non-overlapping UTC ranges). Default if type is omitted.
1Closed — do not send. Omit the day from days instead.
2Open 24 hours (hours empty / not required)
RESPONSE BODY SCHEMA: application/json
requestIdrequired
string

Tracking id. Use it on Get request status.

statusrequired
string

Success, Pending, or Failed.

message
string | null

Human-readable result.

Responses

200 — Success or queued

If status is Pending, poll Get request status.

400 — Validation failed

Overlapping hours or a bad day value.

Request example
cURL
bash
curl -X PUT http://ext-integration.haat-delivery.io/api/pos/business/1021/working-hours \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days":[{"day":1,"hours":[{"fromHour":"08:00","toHour":"14:00"}]}]}'
Response example
200
json
{"requestId":"6651a3f2e1b2c3d4e5f60001","status":"Success","message":"Updated successfully"}

Type to search…

↑↓ navigate↵ openesc close