---
title: "The firm's rules, the same at every client (p12 Facts and rules, p18 Settings;"
method: GET
path: "/accountant/firm-rules"
tags: ["Accountants"]
---

# The firm's rules, the same at every client (p12 Facts and rules, p18 Settings;

`GET /accountant/firm-rules`

## Request

- Base URL: `https://api.medianfi.com/api/v1`
- URL: `https://api.medianfi.com/api/v1/accountant/firm-rules`
- Auth: HTTP bearer

Every signed-in accountant reads them; each client's Facts and rules shows them read-only. `status` defaults to `active`; `retired` and `all` include retired rules, which keep who retired them and when. In the order they were added, at most 500. `builtIn` (PG-p12-016) lists the rules built into Median, the same on every read whatever `status`: no firm admin adds, edits or retires them, and only rules the code applies are listed (`transfer_pair`, `card_payment_match`, `balance_sheet_to_person`). Human-only: every API key is refused, the service token included (404).

## Query parameters

- `status` 'active' | 'retired' | 'all'

## Response `200`

The firm's rules

- object
  - `success` true, required
  - `data` object, required
    - `rules` FirmRule[], required
      - `id` string, uuid, required
      - `name` string, required
      - `says` string, required
      - `source` string, required
      - `scope` 'every_client', required
      - `status` 'active' | 'retired', required
      - `addedBy` object, nullable, required
        - `userId` string, uuid, required
        - `name` string, nullable, required
      - `addedAt` string, date-time, required
      - `retiredBy` object, nullable, required
        - `userId` string, uuid, required
        - `name` string, nullable, required
      - `retiredAt` string, date-time, nullable, required
    - `builtIn` object[], required
      - `key` 'transfer_pair' | 'card_payment_match' | 'balance_sheet_to_person', required
      - `name` string, required
      - `says` string, required

## Other responses

- `401`: Authentication required
- `403`: Insufficient permissions or not a company member
- `422`: Validation error

## Changes

- **2026-11-26** `4a2098becaf9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/medianfi/apis/median-api/changes/accountant/firm-rules/get.md)

---

[API](https://skmtc.dev/medianfi/apis/median-api.md) - [All operations](https://skmtc.dev/medianfi/apis/median-api/llms.txt) - [OpenAPI document](https://skmtc.dev/medianfi/apis/median-api/revisions/4f4c2d34276b?raw)
