read
finance

Posted journal entries of one entity with their lines, by entry date.

Changed on

The ledger is append-only: an entry is never changed or deleted, it is reversed by a new entry of kind reversal whose reverses_entry_id names it. Each line carries its amount in the transaction currency and its base amount, the rate, its source and date. 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.

post/api/v1/finance/journal-entries

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.

from, string date

Inclusive lower bound on entry_date.

to, string date

Inclusive upper bound on entry_date.

entry_id, string uuid

Only this entry.

import_id, string uuid

Only the entries of this import.

include_lines, boolean

Include each entry's lines.

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