read
finance

The rule a bank line suggests, and how many lines it would have caught. Saves nothing.

Changed on

Derives the rule a line suggests — its counterparty (account number, else name) and the direction of the money — and counts the lines of this entity it matches (fin_rule_preview): matches of scanned, truncated when the scan stopped at its bound, and overlaps with rules that already exist. With today, only the 90 days before it are counted. conditions is what saving the rule stores for the same line. A line of another entity, or one this app cannot read, answers 404. Behind the mcp_finance_reads switch: until the platform owner turns it on this answers 403 feature_off and reads nothing.

The GET form of finance_review_rule_preview: the same arguments as query parameters.

get/api/v1/finance/review/rules/preview

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

Query parameters

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.

bank_transaction_id, string uuid required

The bank line the rule is derived from.

today, string date

Count the 90 days before this date only (default: every line).

entity, string uuid

Alias of entity_id; give one of the two.

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