Skip to content

Hacienda acceptance rate, rejection reasons and voids

GET
/v1/reports/compliance
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.

from
string
Example
2026-06-01

Inclusive start (CR-local YYYY-MM-DD).

to
string
Example
2026-06-30

Inclusive end (CR-local YYYY-MM-DD).

currency
string

ISO 4217 code. Defaults to the tenant default currency.

convertToCrc
boolean

When true: no currency filter — all documents aggregate in CRC via each document's snapshotted exchange rate. Takes precedence over currency.

Media typeapplication/json
object
totalEmitted
required

Documents issued in the range (by emission date, any type and currency), in any status — the ones still pending included.

number
accepted
required

Of those, accepted by Hacienda (accepted).

number
rejected
required

Of those, rejected by Hacienda (rejected).

number
errored
required

Of those, in error: the emission failed (see rejectionReasons).

number
pending
required

Of those, still waiting on Hacienda: signed (not yet delivered) plus submitted (awaiting the verdict).

number
acceptanceRate
required

0..1 accepted / totalEmitted.

number
voids
required

Credit notes (docType 03) accepted in range.

number
byStatus
required

Documents per status; a status with no documents is absent.

Array<object>
object
status
required

A document status present in the range: signed, submitted, accepted, rejected, error — or draft, for a document numbered but not signed yet.

string
count
required

Documents in that status.

number
rejectionReasons
required

Top error reasons for rejected/errored docs.

Array<object>
object
reason
required

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.

string
nullable
count
required

Documents with that reason.

number
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
}
]
}