review_new_invoices
Lists invoices accepted by KSeF since your last review, marking them as seen so they are not repeated. Uses the official acceptance date, not the seller's issue date.
Instructions
Report the invoices that have arrived since a person was last shown any.
This is the question the free Ministry application cannot answer: it lists what is there, never what is new since somebody last looked. The comparison is against a ledger of KSeF numbers already reported by this tool, kept on disk per subject and per environment, so it survives restarts.
The window is the last ninety days, dated by acceptance in KSeF rather than by the seller's issue date — an invoice issued in March and accepted yesterday is new to the reader, and a window dated by issue date would not contain it. Both ends are fixed, so asking again within the same hour is answered from disk and spends nothing from twenty metadata queries an hour.
received_on per invoice is the day KSeF assigned the number, read off the
number itself. It is independent of when this tool fetched anything, and it
is not the seller's issue date, which is reported separately.
KSeF has no notion of a closed period and will not stop an invoice from
landing in a month already filed, so earlier_month_count counts the new
invoices whose number was assigned before the current month. That is a
signal to look, never a statement that an invoice belongs to any period —
the tax treatment is the reader's decision and this tool does not make it.
Invoices listed individually are recorded as shown, and the next call does
not repeat them. Above the threshold the rows are dropped, and then nothing
is recorded, because nobody saw them — marked_as_reviewed says which of
the two happened. Metadata only: an FA(2)/FA(3) body holds a counterparty's
personal data and never enters this answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nip | Yes | ||
| message | Yes | ||
| warnings | No | ||
| period_to | Yes | ||
| threshold | Yes | ||
| environment | Yes | ||
| ledger_file | Yes | ||
| period_from | Yes | ||
| subject_roles | Yes |