BillOS v1
Console llms.txt OpenAPI
GET/businesses/{bid}/reports/{kind}

Management report

GET /businesses/{bid}/reports/{kind}

Requires the export scope.

Cash-basis, mirroring the OPENFRMT semantics exactly: income is payment-bearing documents, expenses count at record. Default is a rendered Hebrew PDF carrying the business branding; ?format=json returns the aggregates for your own dashboard. The profit report includes a VAT block (עסקאות / תשומות / נטו) for VAT-registered dealers, income.byParty: the income before VAT by the customer named on each paid document, largest first (partyName null for documents with no customer), and months: every calendar month the range touches, oldest first, with its income before VAT, its expense cost and the profit between them (a quiet month is a zero).

full is the accountant's pack for the period: the three reports composed into ONE PDF, or with format=xlsx the workbook (income, expenses, and profit and loss as three sheets, each document linked); format=json returns the three reports' aggregates under incomes, expenses and profit.

These are management reports; the regulatory filing artifact remains the OPENFRMT export.

Path parameters

NameTypeDescription
bidstringrequiredBusiness id, from POST /businesses.
kindstringrequiredהכנסות / הוצאות / רווח והפסד / full: הדוח המרוכז לרואה החשבון. One of: incomes, expenses, profit, full.

Query parameters

NameTypeDescription
fromstring
tostring
formatstringxlsx only with kind=full. One of: pdf, json, xlsx. Default pdf.

Response

200: raw application/pdf bytes.

Errors: 400, 401, 403, 404, 429. Every failure answers { "error", "reason", "hint", "param", "doc_url", "retryable", "request_id" }: branch on reason, and read hint for what to change (https://docs.billos.co.il/errors.md).

GET /businesses/{bid}/reports/{kind}
curl -X GET "$BASE/businesses/$BID/reports/profit?from=&to=&format=" \
  -H "X-Api-Key: $KEY"
  -o document.pdf
const res = await fetch(`${BASE}/businesses/${BID}/reports/profit`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const pdf = Buffer.from(await res.arrayBuffer())
import requests
res = requests.get(
    f"{BASE}/businesses/{BID}/reports/profit",
    headers={"X-Api-Key": KEY},
)
open("document.pdf", "wb").write(res.content)
Set BASE to https://api.billos.co.il/v1 and KEY to your bk_live_… key, or a bk_test_… key to run it against the sandbox.
Manage your businesses, keys and webhooks in the BillOS Console.