Mark an approved filing as excluded at the regulator
Records that a Final filing was excluded at the regulator, with who marked it, when, and the reason the person gives (typically the exclusion’s receipt). Requires the same ‘regulatory-approval’ permission AND a person as approval: an application token is refused (403 RPT-0201, or 401 RPT-0158 where M2M inversion is off), because marking undoes what an approval established. If-Match must carry the version the person read (the report’s draftVersion): without it the request is refused with 428, and a different version with 409. The reason is trimmed and must then hold 1 to 200 characters on one line (400 RPT-0204 when blank, 400 RPT-0205 when longer, 400 RPT-0208 when it carries a control or invisible character such as a line break or a bidi override). Only a Final can be marked (409 RPT-0206), and only once: a second mark is refused with 409 RPT-0207 naming when and by whom the first was made, and the mark is never undone. An unknown report, or one that is not a regulatory filing, answers 404. A marked report stays Final and keeps its artifact, but it no longer stands as its period’s approved filing nor supersedes a generation newer than itself (where the pinned contract approves only the newest generation, filing.approve: newest, it supersedes no report at all, older or newer), so a new original of the period can be generated and approved, and it is never approved again (409 RPT-0207). Marks and approvals of one filing take turns under the same lock. When the whole event was excluded, mark its approved replacements too.
Encabezados
Cuerpo
Respuesta
OK
File dataset days the report read, one per dataset and day, by data source name then day: the revision read and the contract version it was accepted under; noDelivery marks a day read as declared without delivery. Present wherever the report is read, the list endpoint included. Written while the report is generated, before its final status (with the draft, on a filing); absent until then and on a report that read no file dataset.
When a person marked this Final filing as excluded at the regulator, when one did. A marked report stays Final, but it no longer stands as its filing period's approved filing nor supersedes a generation newer than itself, so a new original of the period can be generated and approved. The mark is never undone.
"2026-03-20T14:00:00Z"
The filing period this generation is for, as the pinned contract's filing.period spells it: name=value of each period parameter in name order, joined by &, or * when the contract declares the document has no period (one filing for the document and the institution). Two generations of the same document for the same declarant CNPJ with the same filingPeriod and remittance are the same filing, whichever subscription generated them. Absent on an operational report and on a filing generated before the period was recorded.
"dataBase=2026-09"
Values the engine generated into the document's generated fields when the draft was made, each unique across the tenant's reports. A correction re-renders the same values; a new generation draws new ones. Present wherever the report is read, the list endpoint included; absent when the document generates nothing.
What a regulatory Draft still cannot fill, computed on read from the same stored state the approval refusal reads, each field flagged required or not. Present when a Draft is read by id; absent on a Final, on a non-regulatory report, and in the list endpoint, which does not compute it. Absent means unknown, an empty list means nothing is missing, and only a required gap refuses an approval.
Marks the manager appended when a source the filing read showed another state of a read key than the last one known: the version and digest it showed, or noRows. Only grows, in the order the marks were made. A mark says the source published another state of what the filing read, never that the file would change, and an approval is never refused because of one. Absent when no read was marked.
Versioned database reads the filing made, one per read key: for each mapping query that declares sourceVersion, the version its table showed for the query's filters and the institution scope, or noRows when no row was visible. Present wherever the report is read, the list endpoint included. Written with the draft; absent until then, on a filing whose mapping declares no version and on an operational report.
The newest Draft or Final of the same declarant (document and institution CNPJ, across subscriptions), filing period and remittance created after this report, which therefore stands in its place. A Final marked excluded at the regulator counts only as a generation: it still supersedes the reports created before it, but none created after it, and a newer generation stands before it. Where the pinned contract approves only the newest generation (filing.approve: newest), it is instead the newest generation that refuses this draft's approval: a report still Processing, a Draft, or a Final not marked excluded; a Final marked excluded supersedes nothing there. Computed on read for regulatory filings that are not Final; absent when nothing supersedes the report, on a Final, on a filing without a recorded period and on an operational report.
"00000000-0000-0000-0000-000000000003"

