read
finance

The bank lines waiting for a person's decision, each with the proposals made for it.

Changed on

Each item of the review queue (state open, the default, or resolved): why the line is there (reason, e.g. low_confidence, rule_conflict, manual with the question asked), the bank line (date, amount as a decimal string with its currency, counterparty) and every pending proposal for it (classification_id, provenance rule | match | memory | prediction | user, the proposed action, confidence). A rule is proposed with the rule preview and the rule save of this API. Deciding a line (accept, adjust, post, withdraw) and accepting a learned rule are a person's, in Books → To do → Review; no operation offers them. Keyset-paged on the queue item id: pass page.next_cursor back as cursor while page.has_more is true. Behind the mcp_finance_reads switch: until the platform owner turns it on this answers 403 feature_off and reads nothing.

post/api/v1/finance/review

Request

  • Base URL
    https://app.magistry.io
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization codehttps://app.magistry.io/api/oauth/authorize
      Token URLhttps://app.magistry.io/api/oauth/token
      Scopesfinance:read

Request body

object required
entity_id, string uuid required

The entity, one of those this app was granted (GET /api/v1/finance/entities lists them). In a GET query string entity is accepted too.

state, 'open' | 'resolved'

open (default): not yet resolved; resolved: resolved items.

cursor, string

The next_cursor of the previous page. Opaque.

limit, integer

Items per page.

Response

Result

object required
ok, boolean required
result, unknown required

Changes

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    • warning

      added the new method_not_allowed enum value to the error response property for the response status

    11 more changes in this revision