SonaCORE

Referência / Quadra Core API

Attestations

1 operação em Quadra Core API 0.5.0.

GET/v1/attestations

List the CRC attestations of one accounting artifact

Every attestation of one artifact, newest first — superseded ones included. Each record names the CRC professional and firm, the act, the exact `subject_hash` it bound, and the journal entry (`journal_seq_no`) whose `evidence_hash` commits its `record_digest`.

⛔ Append-only: there is no update or delete verb for an attestation.

Raises: 400: INVALID_QUERY (unknown subject_kind)

Parâmetros

NomeTipoDetalhe
subject_kindstringqueryobrigatório PERIOD | FISCDOC | PIECE | RECLASSIFICATION
subject_idstringqueryobrigatório PERIOD/PIECE: '{scope_id}:{YYYY-MM}'; FISCDOC: the doc_id; RECLASSIFICATION: the obligation_id
cursorstring, opcionalquery Opaque pagination cursor
limitintegerquery

Respostas

StatusCorpoDetalhe
200AttestationListResponseResposta bem-sucedida
422HTTPValidationErrorErro de validação

Esquemas

Os modelos que as operações acima aceitam e devolvem. Campos opcionais estão marcados como tal; um campo tipado como outro modelo está documentado sob o nome dele.

AttestationListResponse

A subject's attestations, newest first.

CampoTipoDetalhe
itemsarray de AttestationRecordobrigatório
next_cursorstring, opcionalPage until null
subject_idstringobrigatório
subject_kindstringobrigatório

AttestationRecord

One CRC professional's act on one artifact.

CampoTipoDetalhe
actstringobrigatórioESCRITURACAO_ASSINADA | COMPETENCIA_APROVADA | RECLASSIFICACAO | CARTA_RESPONSABILIDADE | REABERTURA_AUTORIZADA
attestation_versionintegerobrigatório
attested_atstringobrigatórioServer clock at the write (UTC)
attested_viastringobrigatórioThe surface the act was performed on
crc_numberstringobrigatórioThe professional's CRC registration
crc_ufstringobrigatórioThe UF of that registration
firm_cnpjstringobrigatórioThe organização contábil — the contracting party
firm_crcstringobrigatórioThe firm's own CRC registration
journal_hashstringobrigatórioThat entry's journal_hash
journal_seq_nointegerobrigatórioThe journal entry that commits record_digest
natureza_fromstring, opcionalRECLASSIFICATION only: the prior natureza
natureza_tostring, opcionalRECLASSIFICATION only: the corrected natureza
professional_namestringobrigatório
record_digeststringobrigatóriosha256 over this record's fields — committed to the journal hash chain as the evidence_hash of entry journal_seq_no
seqintegerobrigatório1-based, per subject; append-only
subject_hashstringobrigatóriosha256 of the artifact exactly as attested — a canonical projection of the stored artifact, never of an API response
subject_idstringobrigatórioPERIOD/PIECE: '{scope_id}:{YYYY-MM}'; FISCDOC: the doc_id; RECLASSIFICATION: the obligation_id
subject_kindstringobrigatórioPERIOD | FISCDOC | PIECE | RECLASSIFICATION

HTTPValidationError

CampoTipoDetalhe
detailarray de ValidationError

ValidationError

CampoTipoDetalhe
ctxobject
inputnão declarado
locarray de string ou integerobrigatório
msgstringobrigatório
typestringobrigatório