Saltar al contenido principal
POST
Approve a draft as the filing

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

If-Match
string

Draft version the caller read and is approving. Required.

Parámetros de ruta

reportId
string
requerido

Report identifier.

Respuesta

OK

allInstitutions
boolean

The caller chose every institution, so the report read every institution's rows unscoped.

Ejemplo:

false

approvedAt
string<date-time>

When the report was approved, when it was.

Ejemplo:

"2026-03-12T10:00:00Z"

approvedBy
string

Who approved it, as the Access Manager subject identifier the bearer token named. Absent until approval; never blank on a Final, because an approval whose actor the request did not identify is refused.

Ejemplo:

"9c1d7e34-2b6a-4f81-90a3-5e7f8d0a1b2c"

completedAt
string<date-time> | null

Time when report generation completed, when available.

Ejemplo:

"2026-01-31T15:04:05Z"

correctedAt
string<date-time>

When the draft was last corrected, when it was.

Ejemplo:

"2026-03-12T09:40:00Z"

correctedBy
string

Who last corrected it, as the Access Manager subject identifier the bearer token named. Absent until the first correction; never blank on a report that has one, because a correction whose actor the request did not identify is refused.

Ejemplo:

"3f9a1c2e-0f5b-4d9a-9b8e-1a2b3c4d5e6f"

createdAt
string<date-time>

Time when the report was created.

Ejemplo:

"2026-01-31T15:00:00Z"

deletedAt
string<date-time> | null

Time when the report was soft-deleted, when applicable.

Ejemplo:

"2026-02-01T09:00:00Z"

documentId
string

Curated document this report generates.

Ejemplo:

"br.bcb.cadoc-4010"

documentVersion
string

Pinned version of the document it was generated against.

Ejemplo:

"1.0.0"

draftVersion
integer<int64>

Version of the draft; a correction or an approval must present the one it read.

Ejemplo:

3

filingPeriod
string

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.

Ejemplo:

"dataBase=2026-09"

filters
object

Filter conditions grouped by data source, table, and field.

Ejemplo:
generatedIds
object[] | null

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.

id
string

Stable report identifier.

Ejemplo:

"00000000-0000-0000-0000-000000000001"

institution
object

The institution the report read for, frozen when it was requested: its scope is the part applied to the tables the report reads. Absent on a report that read for no institution.

metadata
object

Additional report metadata keyed by attribute name.

Ejemplo:
openGaps
object[]

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.

parameters
object

Generation parameters recorded with the report, when supplied.

Ejemplo:
provenance
object

Everything this report was made of, frozen — what answers, months later, why it says what it says.

remittance
string

original or replacement, as the pinned contract's filing.remittance reads the generation's parameters. Absent when the contract declares no remittance.

Ejemplo:

"original"

status
string

Current report generation status.

Ejemplo:

"Processing"

subscriptionId
string

Subscription this report files under; present only on the regulatory flow.

supersededBy
string

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. 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.

Ejemplo:

"00000000-0000-0000-0000-000000000003"

templateDescription
string

Description copied from the template when the report was created.

Ejemplo:

"Monthly accounting report"

templateId
string

Template snapshot source identifier.

Ejemplo:

"00000000-0000-0000-0000-000000000002"

templateOutputFormat
string

Output format selected for the generated report.

Ejemplo:

"pdf"

updatedAt
string<date-time>

Time when the report was last updated.

Ejemplo:

"2026-01-31T15:04:05Z"