read
finance

What customers owe this entity and what it owes suppliers, by how long it is past due, as of a day.

Changed on

totals has one row per bucket and currency (current, 1-30, 31-60, 61-90, 90+ days past due; payables also no_due_date, credit_note, and unknown with a null open for bills whose open amount cannot be read), summed in SQL over every open item — never over a page. Currencies are never added together. With include_items the items themselves are listed, at most 1000 per side, with truncated set when there are more. Amounts are { "amount": "<decimal string>", "currency": "<ISO 4217>" } — never a JSON number. 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_aging: the same arguments as query parameters.

get/api/v1/finance/reports/aging

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.

side, 'receivable' | 'payable' | 'both'

Which side.

as_of, string date

The day the aging is taken at (default today, Europe/Amsterdam).

include_items, boolean

List the open items too.

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