read
finance

One analytics view of one entity as an XLSX workbook of values.

Changed on

Answers the workbook itself (one sheet named after the view, a header row of column names, values typed: decimals as numbers, dates as dates). At most 200,000 rows: a larger view is refused with 413 export_too_large and its row count, never cut — read it through OData or the REST view instead. Also served as an OData v4 feed at /api/v1/finance/odata/{entity_id}/ for Excel, Power BI and any OData client: HTTP Basic with any user name and the API key as the password, or a Bearer token. Answers 403 finance_feature_off until the BI feed is switched on.

post/api/v1/finance/bi/xlsx

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.

view, 'journal_lines' | 'trial_balance' | 'profit_and_loss' | 'balance_sheet' | 'invoices' | 'bills' | 'bank_lines' | 'vat_lines' required

The view.

Response

The file. Its SHA-256 is in X-Content-SHA256.

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