Skip to main content

Get branch groups

GET{{server}}/api/v1/smart/branchGroups

This request returns the branch groups. You can use it to organize the branches into groups in the application.

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Code snippets​

curl -X GET '{{server}}/api/v1/smart/branchGroups' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}'

Example​

Example request
GET{{server}}/api/v1/smart/branchGroups
Headers (1)
KeyValue
Acceptapplication/json
Example response 200 Ok
Response headers (9)
KeyValue
Access-Control-Expose-Headers*
Cache-Controlno-store, no-cache, must-revalidate
Access-Control-Allow-Origin*
Access-Control-Allow-MethodsPOST, PUT, GET, OPTIONS, DELETE
Access-Control-Allow-Credentialstrue
Content-Length288
Access-Control-Max-Age86400
Access-Control-Allow-HeadersContent-Type, Authorization, X-Requested-With
Content-Typeapplication/json;charset=utf-8
Body
[
{
"branches": [
"1967b6dd-f895-4fb3-92c3-f7d7acd37b1b",
"1967b6e4-0e41-4cac-3a19-bf68e4b2a626"
],
"name": "North branches",
"key": "1967b6eb-9392-49d6-6327-2e2a979561f6"
},
{
"branches": [
"00000000-0000-4000-0003-000000000001"
],
"name": "Central branches",
"key": "1967b6ed-f49a-486e-6569-1df67873ae6f"
}
]