read
finance

Purchase invoices (bills) of one entity as read off the documents, each with where it stands.

Changed on

standing: open, overdue, paid, set_aside (archived with a reason), issued (a credit note) or unknown (no gross, a payment in another currency, or the open items could not all be read). A bill is paid by the bank lines linked to its document on or before as_of. check_status is the arithmetic check of the reading. 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/purchase-invoices

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.

invoice_id, string uuid

Only this bill.

from, string date

Inclusive lower bound on issue_date.

to, string date

Inclusive upper bound on issue_date.

as_of, string date

The day standing and open are taken at (default today, Europe/Amsterdam).

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