BizKitHub
DokumentationAPI-ExplorerBranch/api/v1/branch/my-monthly-breakdown
getBranchÖffentliche API v1

/api/v1/branch/my-monthly-breakdown

Per-month financial roll-up of one branch for the logged-in franchisee: turnover, cash-in, credit settlement, write-offs, franchise fee, gateway fee, fixed and variable costs, the resulting net and the settlement invoice of each month (number, due date, paid date, PDF link), plus window totals and average / median / best / worst month reference values.

Figures are identical to the Finance tab in the BizKitHub admin. Internal data (franchise-fee rule notes, settlement bookkeeping details, internal order identifiers, other branches) is not included.

Access rule (same as /branch/my-branch-list): a caller whose contact is linked to an organisation member holding root (directly or via a role) may open any active branch; everyone else only active branches where their contact is the technician in shop__branch_person. Any other slug, including a non-existent one, answers 403 BRANCH_FORBIDDEN.

branchgetApiV1BranchMy-monthly-breakdown

Parameter

4 in der Query

Query-Parameter

· 4
apiKeystringPflicht

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

BeispielPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
identityIdstringPflicht

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

BeispielZ9CPkS2o3UV163VQn5OUv0T8BQi8Fvdg
branchSlugstringPflicht

Branch slug (from /branch/my-branch-list).

Beispielgymroom-vinohrady
monthCountstringOptional

How many calendar months to return (default 12, clamped to [1, 60]). The window always ends with the current month and never starts before the branch opened.

Beispiel12

Antwortschema

2 dokumentierte Statuscodes

200Erfolg
branchSlugstringPflicht
branchNamestringPflicht
currencystringPflicht

ISO 4217 code of the organisation default currency.

BeispielCZK
franchiseFeePercentagenumber | nullPflicht

Franchise-fee rate in force today (percent); null when not configured.

Beispiel9
monthCountnumberPflicht

Effective number of returned months (post-clamp).

monthsobject[]Pflicht

Months in ascending order.

Jedes Array-Element:
monthstringPflicht

Month identifier in "YYYY-MM" format.

Beispiel2026-10
revenuenumberPflicht

Gross revenue (turnover) of the month, storno items excluded.

cashInAmountnumberPflicht

Money actually received in the month (gateway payments + matched bank transfers) for orders attributed to the branch. Cash-flow figure dated by payment day, not turnover.

creditAmountnumberPflicht

Net credit balance moved in the month (credit settlement).

writeoffnumberPflicht

Sum of write-offs (corrections) effective in the month.

franchiseFeePercentagenumberPflicht

Franchise-fee rate in force in this month (percent). 0 when no rule covers the month.

Beispiel9
franchiseFeeAmountnumberPflicht

revenue × franchiseFeePercentage ÷ 100, rounded.

gatewayFeeAmountnumberPflicht

Payment-gateway commission on the gateway-routed part of cash-in.

costAmountnumberPflicht

Fixed branch costs (rent, energy, …) applied to the month.

variableCostnumberPflicht

Variable cost of sold items (positive magnitude).

netnumberPflicht

What the branch keeps: revenue − franchiseFeeAmount + writeoff − costAmount − gatewayFeeAmount − variableCost.

invoiceobject | nullPflicht

Settlement order (vyrovnání) of the month. null when none has been issued yet.

orderNumberstringPflicht

Public number of the settlement order.

Beispiel2026100012
dueDatestring | nullPflicht

ISO due date; null when not set.

paidDatestring | nullPflicht

ISO timestamp of payment; null while unpaid.

isStornobooleanPflicht

True when the settlement order has been cancelled (storno).

documentTypestring | nullPflicht

Type of the linked accounting document (invoice, proforma, …); null when none is issued.

Beispielinvoice
pdfUrlstring | nullPflicht

Direct download URL of the accounting document PDF (final invoice preferred over proforma). May be time-limited for private storage; fetch fresh from this endpoint instead of caching it. null when no document has been issued (e.g. a zero-amount statement).

totalsobjectPflicht
revenuenumberPflicht
cashInAmountnumberPflicht
creditAmountnumberPflicht
writeoffnumberPflicht
franchiseFeeAmountnumberPflicht
gatewayFeeAmountnumberPflicht
costAmountnumberPflicht
variableCostnumberPflicht
netnumberPflicht
monthlyAverageRevenuenumberPflicht
monthlyMedianRevenuenumberPflicht
monthlyAverageNetnumberPflicht
monthlyMedianNetnumberPflicht
bestMonthobject | nullPflicht
monthstringPflicht
netnumberPflicht
worstMonthobject | nullPflicht
monthstringPflicht
netnumberPflicht

Antwortbeispiel

application/json
{
  "branchSlug": "example_branchSlug",
  "branchName": "example_branchName",
  "currency": "CZK",
  "franchiseFeePercentage": 9,
  "monthCount": 0,
  "months": [
    {
      "month": "2026-10",
      "revenue": 0,
      "cashInAmount": 0,
      "creditAmount": 0,
      "writeoff": 0,
      "franchiseFeePercentage": 9,
      "franchiseFeeAmount": 0,
      "gatewayFeeAmount": 0,
      "costAmount": 0,
      "variableCost": 0,
      "net": 0
    }
  ],
  "totals": {
    "revenue": 0,
    "cashInAmount": 0,
    "creditAmount": 0,
    "writeoff": 0,
    "franchiseFeeAmount": 0,
    "gatewayFeeAmount": 0,
    "costAmount": 0,
    "variableCost": 0,
    "net": 0,
    "monthlyAverageRevenue": 0,
    "monthlyMedianRevenue": 0,
    "monthlyAverageNet": 0,
    "monthlyMedianNet": 0
  }
}

Alle dokumentierten Statuscodes

· 2

Anfragebeispiel

GET /api/v1/branch/my-monthly-breakdown

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

Sie brauchen einen API-Schlüssel?

Alle öffentlichen Endpunkte der BizKitHub-API authentifizieren per API-Schlüssel.

API-Schlüssel erhalten