Purpose
Allows you to quickly retrieve active branches connected to your brand to initiate location-based operations.HTTP Request
Authorization
Standard headers are required:x-tokenx-brandx-venue
Request Example
Response
200 OK — List of branches
401 Unauthorized — Missing header
Field Reference
Top-level fields
| Field | Type | Description |
|---|---|---|
success | boolean | Success status of the request. |
data | array | Branch objects. |
time | number | Response time (ms). |
timestamp | string | ISO 8601 date. |
Branch object
| Field | Type | Description |
|---|---|---|
id | number | Branch ID. |
name | string | Branch name. |
address | string | Address. |
status | number | 1 = active, 0 = inactive. |
phone | string | Contact number. |
email | string | Contact email. |
Notes
- This endpoint returns all branches you have access to; use client-side logic to filter the result set.
- The
statusfield indicates inactive branches; to work only with active branches, retrieve those wherestatus === 1. - Although the response size is small, client-side caching is recommended for large brands.
- You can use the branch ID as
x-venuein other endpoints.
Authorizations
Access token obtained from /auth endpoint
Brand identifier
Venue identifier