## Get the tenant's accounting settings (tenant:masterdata:read)

`GET /api/masterdata/tenant-settings`

Module: Master data · operationId: `getTenantSettings` · Tag: Settings · Auth: access token (`Authorization: Bearer <accessToken>`)

`version` 0 and an empty `chartOfAccounts` while no chart was chosen.

### Responses

- **200** The settings (`application/json`)
- **401** Missing, invalid or expired token (empty body)
- **403** The token lacks the permission or carries no tenant (`application/json`)

Fields of the 200 answer:

- `chartOfAccounts` (string, required): DATEV chart of accounts (empty in a response while none was chosen) (one of `SKR03`, `SKR04`)
- `version` (integer, required): Optimistic locking version (0 while not stored)

Example 200 answer:

```json
{
  "chartOfAccounts": "SKR04",
  "version": 2
}
```

### Example request

```bash
curl -X GET 'https://api.mbcom.cloud/api/masterdata/tenant-settings' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```
