read
finance

Sales invoices and credit notes of one entity, each with where it stands (open, overdue, paid, credited).

Changed on

standing is decided as the Books sales list decides it, from the open items as of as_of (default today): draft, open, overdue, paid, credited, issued (a credit note), or unknown when the open items could not all be read (open_items_complete false) — never guessed. open is what is still owed, null when nothing is. Discarded drafts are left out unless status asks for them. 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/sales-invoices

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.

invoice_id, string uuid

Only this invoice.

contact_id, string uuid

Only the invoices of this contact.

status, 'draft' | 'issued' | 'discarded'

Only invoices in this state.

from, string date

Inclusive lower bound on issue_date.

to, string date

Inclusive upper bound on issue_date.

as_of, string date

The day standing and open are taken at (default today, Europe/Amsterdam).

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