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

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

## Path parameters

| Name | Type | | Description |
|---|---|---|---|
| `bid` | string | **required** | Business id, from `POST /businesses`. |
| `kind` | string | **required** | הכנסות / הוצאות / רווח והפסד. One of: `incomes`, `expenses`, `profit`. |

## Query parameters

| Name | Type | | Description |
|---|---|---|---|
| `from` | string |  |  |
| `to` | string |  |  |
| `format` | string |  |  One of: `pdf`, `json`. Default `pdf`. |

## Response

`200`: raw `application/pdf` bytes.

Errors: `400`, `401`, `403`, `404`, `429`. Every failure answers `{ "error": …, "reason": … }`. Branch on `reason`.

## Examples

### cURL

```bash
curl -X GET "$BASE/businesses/$BID/reports/profit?from=&to=&format=" \
  -H "X-Api-Key: $KEY"
  -o document.pdf
```
### Node

```node
const res = await fetch(`${BASE}/businesses/${BID}/reports/profit`, {
  method: 'GET',
  headers: {
    'X-Api-Key': KEY,
  },
})
const pdf = Buffer.from(await res.arrayBuffer())
```
### Python

```python
import requests
res = requests.get(
    f"{BASE}/businesses/{BID}/reports/profit",
    headers={"X-Api-Key": KEY},
)
open("document.pdf", "wb").write(res.content)
```