CT-e
List events
Returns every event registered on the CT-e.
/openapi/v2/empresas/{empresaId}/cte/{cteId}/eventosRequires the token, timestamp and sign signature headers, see Authentication.
Lists the registered events (cancellation, correction letters, delivery receipts and failures and their cancellations), each with type, sequence, cStat, protocol, date and XML link. The same list appears as eventos in the query.
Parameters
Path parameters
empresaIdstringrequiredCompany (carrier) identifier returned at registration.
Example:1934811222334455cteIdstringrequiredThe
idsent at CT-e issuance.Example:CTE-ORD-1
Responses
Array of event objects; empty when no event has been registered.
chaveAcessostring44-digit access key of the CT-e the event was linked to.
tipostringEvent type.
Values:CancelamentoCartaCorrecaoComprovanteEntregaCancelamentoComprovanteEntregaInsucessoEntregaCancelamentoInsucessoEntregaPrestacaoDesacordoCancelamentoPrestacaoDesacordoEpeccodigostringSEFAZ event code (tpEvento):
110111,110110,110113,110180,110181,110190,110191,610110,610111.sequenciaintegerSequence number of the event within its type (the correction letter auto-increments).
statusstringcStat returned by SEFAZ;
135means the event was registered and linked.motivostringxMotivo returned by SEFAZ.
protocolostringEvent protocol number; use it as
protocoloEventoto cancel the event.datastringEvent registration date and time, ISO-8601 in UTC.
linkXmlstringDownload link of the event XML (procEvento). See File download.
Errors
| Code | HTTP | |
|---|---|---|
| CTe0001 | 404 |
|
| 10003000 | 404 |
|
