π¬ Get Branches
Endpoint: GET /api/branches
Description: Used to retrieve a list of branches and their status.
Authorization: Required (Authorization: Bearer \<token>
)
π§Ύ Response POS
β
Success
{
"branches": [
{
"id": "122",
"name": "Downtown Branch",
"status": true,
"brand_id": "5000",
"location": "Downtown City"
}
]
}
π Field Descriptions
Field | Type | Description |
---|---|---|
branches | array | List of all brand branches |
branches[].id | string | Unique identifier for the branch |
branches[].name | string | Branch name (e.g., "Downtown Branch") |
branches[].status | boolean | 1 if open/available, 0 if paused/unavailable |
branches[].brand_id | string | The ID of the brand this branch belongs to |
branches[].location | string | Human-readable address or description |
π§ Behavior
- Blend calls this endpoint to fetch the list of branches
Updated 10 days ago
Whatβs Next