Hacienda acceptance rate, rejection reasons and voids
const url = 'https://api.emite.cr/v1/reports/compliance?from=2026-06-01&to=2026-06-30';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.emite.cr/v1/reports/compliance?from=2026-06-01&to=2026-06-30' \ --header 'Authorization: Bearer <token>'Counts the documents emitted in the range (by emission date) per status, the pending ones (signed, submitted) included, the acceptance rate, the top error reasons of rejected and errored documents, and the number of credit-note voids in the range.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Example
2026-06-01Inclusive start (CR-local YYYY-MM-DD).
Example
2026-06-30Inclusive end (CR-local YYYY-MM-DD).
ISO 4217 code. Defaults to the tenant default currency.
When true: no currency filter — all documents aggregate in CRC via each document's snapshotted exchange rate. Takes precedence over currency.
Responses
Section titled “Responses”object
Documents issued in the range (by emission date, any type and currency), in any status — the ones still pending included.
Of those, accepted by Hacienda (accepted).
Of those, rejected by Hacienda (rejected).
Of those, in error: the emission failed (see rejectionReasons).
Of those, still waiting on Hacienda: signed (not yet delivered) plus submitted (awaiting the verdict).
0..1 accepted / totalEmitted.
Credit notes (docType 03) accepted in range.
Documents per status; a status with no documents is absent.
object
A document status present in the range: signed, submitted, accepted, rejected, error — or draft, for a document numbered but not signed yet.
Documents in that status.
Top error reasons for rejected/errored docs.
object
The reason code recorded when a document went to error (for example POLL_TIMEOUT_24H or ATV_REJECTION). A rejection by Hacienda records no code of its own, so rejected documents usually group under null.
Documents with that reason.
Examplegenerated
{ "totalEmitted": 1, "accepted": 1, "rejected": 1, "errored": 1, "pending": 1, "acceptanceRate": 1, "voids": 1, "byStatus": [ { "status": "example", "count": 1 } ], "rejectionReasons": [ { "reason": "example", "count": 1 } ]}