read
finance

The profit and loss of one entity for a date range inside one fiscal year, with its calculation.

Changed on

Revenue and expense sections by subtype, their totals and the result (a profit is positive), with trace and trace_url. Amounts are { "amount": "<decimal string>", "currency": "<ISO 4217>" } — never a JSON number.

The GET form of finance_profit_and_loss: the same arguments as query parameters.

get/api/v1/finance/reports/profit-and-loss

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.

from, string date required

First day of the range.

to, string date required

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

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