BizKitHub
DokumentáciaPrieskumník APIBranch/api/v1/branch/my-branch-list
getBranchVerejné API v1

/api/v1/branch/my-branch-list

Returns branches (pobočky) of the organisation the currently authenticated user operates.

Resolution rule:

  • If the caller's contact is linked to an organisation member holding the root permission (directly or via a role), the response contains every active branch in the organisation — the same set /branch/list would return without paging.
  • Otherwise the response contains only branches on which the caller is listed as the technician in shop__branch_person.

Each item carries only the publicly displayable subset of branch information. Use /branch/detail?slug=… to fetch the full public detail of a specific branch.

branchgetApiV1BranchMy-branch-list

Parametre

2 v query

Parametre v query

· 2
apiKeystringPovinné

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PríkladPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
identityIdstringPovinné

Logged user identity (from your frontend cookies). Learn more

PríkladZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg

Schéma odpovede

1 zdokumentovaný stavový kód

200Úspech
itemsobject[]Povinné
Každá položka poľa:
idstringPovinné

Branch slug (used as identifier in /detail).

Príkladprague-central
slugstringPovinné

URL-safe unique branch slug.

Príkladprague-central
namestringPovinné

Branch display name.

PríkladPrague Central
descriptionstringVoliteľné

Short branch description.

urlstringVoliteľné

Public branch URL.

latitudenumberVoliteľné

Branch GPS latitude.

Príklad50.0755
longitudenumberVoliteľné

Branch GPS longitude.

Príklad14.4378
mainPhotoUrlstringVoliteľné

URL of the main public photo.

addressSummarystringVoliteľné

Short rendered address (street, ZIP, city).

PríkladHlavní 1, 110 00, Praha
branchType"own" | "franchise" | "partner"Povinné

Branch kind. Defaults to "own" for historical rows.

Príkladown
distanceKmnumberVoliteľné

Great-circle distance from the reference GPS point in kilometres. Present only when both latitude and longitude query parameters are provided and the branch has GPS coordinates filled in.

Príklad3.42
itemCountnumberPovinné

Number of branches returned.

Príklad3

Ukážka odpovede

application/json
{
  "items": [
    {
      "id": "prague-central",
      "slug": "prague-central",
      "name": "Prague Central",
      "description": "example_description",
      "url": "example_url",
      "latitude": 50.0755,
      "longitude": 14.4378,
      "mainPhotoUrl": "example_mainPhotoUrl",
      "addressSummary": "Hlavní 1, 110 00, Praha",
      "branchType": "own",
      "distanceKm": 3.42
    }
  ],
  "itemCount": 3
}

Ukážka požiadavky

GET /api/v1/branch/my-branch-list

get
curl -X GET "https://api.bizkithub.com/api/v1/branch/my-branch-list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&identityId=Z9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrebujete API kľúč?

Všetky verejné endpointy BizKitHub API sa overujú API kľúčom.

Získať API kľúč