read
finance

One account's ledger for a date range inside one fiscal year: opening, every line with its running movement, closing.

Changed on

opening, debit, credit and closing are the engine's trial-balance row for the account over the range, on its normal side. Each line carries running_movement: debit minus credit in the base currency from the first day of the range up to and including that line, over the whole range rather than the page. Lines are ordered by entry date, entry and line number. Give account_id or account_code. 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/reports/account-ledger

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.

account_id, string uuid

The account (or give account_code).

account_code, string

The account code (or give account_id).

from, string date required

First day of the range.

to, string date required

Last day of the range, in the same fiscal year.

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