/branches
HTTP 200
Daftar cabang
Scope:
branches:read
· X-Branch-Id tidak diperlukan
cURL
curl -s -X GET "https://aktivo.ngarya.com/api/v1/branches?page=1&per_page=50" \
-H "Authorization: Bearer akt_YOUR_TOKEN" \
-H "Accept: application/json"
Query params
{
"page": 1,
"per_page": 50
}
Response JSON (200)
{
"data": [
{
"id": 1,
"external_branch_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"slug": "main",
"name": "Main",
"is_default": true,
"is_active": true
}
],
"links": {
"first": "https://aktivo.example/api/v1/branches?page=1",
"last": "https://aktivo.example/api/v1/branches?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"per_page": 50,
"total": 1
}
}