# Stop the periodic report

`DELETE /businesses/{bid}/accountant-report`

Requires the `businesses` scope.

Removes the schedule. Nothing already sent is affected. Owner only.

## Path parameters

| Name | Type | | Description |
|---|---|---|---|
| `bid` | string | **required** | Business id, from `POST /businesses`. |

## Response

`200`: `{ "ok": true, … }`

| Field | Type | | Description |
|---|---|---|---|
| `ok` | boolean |  |  |

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

## Examples

### cURL

```bash
curl -X DELETE "$BASE/businesses/$BID/accountant-report" \
  -H "X-Api-Key: $KEY"
```
### Node

```node
const res = await fetch(`${BASE}/businesses/${BID}/accountant-report`, {
  method: 'DELETE',
  headers: {
    'X-Api-Key': KEY,
  },
})
const data = await res.json()
if (!data.ok) throw new Error(data.reason)
```
### Python

```python
import requests
res = requests.delete(
    f"{BASE}/businesses/{BID}/accountant-report",
    headers={"X-Api-Key": KEY},
)
data = res.json()
```