Accountant Portal

Report what the bookkeeping agent did for a customer

Changed on

Human accountants only: an accountant assigned to the customer (or one with access to every customer). The bookkeeping agent's key and the shared cloud-bookkeeping service token both get 404. Read-only. One item per agent run (work item) started in [from, to), newest first, with what it tried, how it ended, the row it acted on as the customer's books show it now, the reason code it recorded, what it cited (counted by kind), its confidence and the question it raised. The model's free-text reasoning is never returned. Filters narrow the list and its total: kind, outcome, q (the acted-on row's payee or bank description contains the text, case aside), reason (the item's reasonCode) and accountId (the account the run categorized into or proposed). summary counts every run in the period and ignores the filters. Mounted only when the deployment enables the bookkeeping agent (default off); otherwise 404.

get/accountant/companies/{customerId}/agent/activity

Request

  • Base URL
    https://api.medianfi.com/api/v1
  • Auth
    HTTP bearer

Path parameters

customerId, string uuid required

Query parameters

from, string date-time required

Start of the period (inclusive), an ISO 8601 instant.

to, string date-time required

End of the period (exclusive), an ISO 8601 instant after from and at most 93 days after it.

kind, 'categorized' | 'matched' | 'repaired' | 'reconciled' | 'asked' | 'held' | 'failed' | 'running' | 'other'

What the run did. Applied runs are named by their action; the others by their outcome.

outcome, 'applied' | 'asked' | 'failed' | 'held' | 'running'

How the run ended. held: stopped by a run limit, the kill switch or the patient-data flag, or failed and waiting for a fix.

q, string

Text the acted-on row's payee or bank description contains, case aside. % and _ are taken literally.

reason, string

The item's reasonCode (for example model_asked, money_line, switched_off).

accountId, string uuid

The account the run categorized into or proposed.

cursor, string

The nextCursor of the previous page.

limit, integer

Response

Success envelope

object required
success, boolean required
data, AgentActivityReport required

Changes

    • warning

      added the new run_bills enum value to the data/items/items/action response property for the response status

    • warning

      added the new run_close enum value to the data/items/items/action response property for the response status

    • warning

      added the new run_revenue enum value to the data/items/items/action response property for the response status