read
finance

The document inbox of one entity: receipts and invoices received, with what was read off each.

Changed on

Each document with its status (received, reading, read, read_failed, linked, archived), its source and file facts, and what the reader extracted: kind, direction, supplier, date, number, total, VAT lines, bank account number, confidence and doubts. counts is every document per status (SQL counts, never this page). status filters, open meaning not yet linked or archived. Reading the list reads nothing with a model. Amounts are { "amount": "<decimal string>", "currency": "<ISO 4217>" } — never a JSON number. Keyset-paged: pass page.next_cursor back as cursor while page.has_more is true. page.truncated is true only when a server-side bound cut this page short of what was asked; it is never a silent cut. 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/documents

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.

status, 'received' | 'reading' | 'read' | 'read_failed' | 'linked' | 'archived' | 'open'

Only documents in this state.

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