BizKitHub
DokumentáciaPrieskumník APIBranch/api/v1/branch/my-monthly-breakdown
getBranchVerejné 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

Parametre

4 v query

Parametre v query

· 4
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
branchSlugstringPovinné

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

Príkladgymroom-vinohrady
monthCountstringVoliteľné

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.

Príklad12

Schéma odpovede

2 zdokumentované stavové kódy

200Úspech
branchSlugstringPovinné
branchNamestringPovinné
currencystringPovinné

ISO 4217 code of the organisation default currency.

PríkladCZK
franchiseFeePercentagenumber | nullPovinné

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

Príklad9
monthCountnumberPovinné

Effective number of returned months (post-clamp).

monthsobject[]Povinné

Months in ascending order.

Každá položka poľa:
monthstringPovinné

Month identifier in "YYYY-MM" format.

Príklad2026-10
revenuenumberPovinné

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

cashInAmountnumberPovinné

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.

creditAmountnumberPovinné

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

writeoffnumberPovinné

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

franchiseFeePercentagenumberPovinné

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

Príklad9
franchiseFeeAmountnumberPovinné

revenue × franchiseFeePercentage ÷ 100, rounded.

gatewayFeeAmountnumberPovinné

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

costAmountnumberPovinné

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

variableCostnumberPovinné

Variable cost of sold items (positive magnitude).

netnumberPovinné

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

invoiceobject | nullPovinné

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

orderNumberstringPovinné

Public number of the settlement order.

Príklad2026100012
dueDatestring | nullPovinné

ISO due date; null when not set.

paidDatestring | nullPovinné

ISO timestamp of payment; null while unpaid.

isStornobooleanPovinné

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

documentTypestring | nullPovinné

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

Príkladinvoice
pdfUrlstring | nullPovinné

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).

totalsobjectPovinné
revenuenumberPovinné
cashInAmountnumberPovinné
creditAmountnumberPovinné
writeoffnumberPovinné
franchiseFeeAmountnumberPovinné
gatewayFeeAmountnumberPovinné
costAmountnumberPovinné
variableCostnumberPovinné
netnumberPovinné
monthlyAverageRevenuenumberPovinné
monthlyMedianRevenuenumberPovinné
monthlyAverageNetnumberPovinné
monthlyMedianNetnumberPovinné
bestMonthobject | nullPovinné
monthstringPovinné
netnumberPovinné
worstMonthobject | nullPovinné
monthstringPovinné
netnumberPovinné

Ukážka odpovede

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
  }
}

Všetky zdokumentované stavové kódy

· 2

Ukážka požiadavky

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"

Potrebujete API kľúč?

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

Získať API kľúč