HAAT Integration Docs

List businesses

Businesses linked to the authenticated DaaS organization.

GET/api/daas/businesses

Call this after Login.

Example:

Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9…
HEADER SCHEMA
Authorizationrequired
string

DaaS org JWT from Login.

RESPONSE BODY SCHEMA: application/json
status
string

For example success.

message
string | null

Human-readable result.

data
object

Businesses for this org.

organizationId
integer

Authenticated organization id.

businesses
object[]

Businesses linked to the org.

businessId
integer

Use this id on later DaaS calls.

businessName
string

Business name.

areaName
string

Area name.

Responses

200 — Businesses for the operator

No query params. Returns the businesses for this org.

401 — Missing or invalid token

Login again and retry.

Request example
cURL
bash
curl http://ext-integration.haat-delivery.io/api/daas/businesses \
  -H "Authorization: Bearer YOUR_TOKEN"
Response example
200
json
{"status":"success","data":[{"businessId":180,"businessName":"saja's bakery"}]}

Type to search…

↑↓ navigate↵ openesc close