CT-e
Delivery failure
Registers event 110190 (delivery failure) on an authorized CT-e.
/openapi/v2/empresas/{empresaId}/cte/{cteId}/insucesso-entregaRequires the token, timestamp and sign signature headers, see Authentication.
Sent synchronously; on success the event object is returned. Keep the protocolo of the response: it is the protocoloEvento used by Cancel delivery failure.
Parameters
Path parameters
empresaIdstringrequiredCompany (carrier) identifier returned at registration.
Example:1934811222334455cteIdstringrequiredThe
idsent at CT-e issuance.Example:CTE-ORD-1
Request body
dataTentativastringrequiredDate and time of the delivery attempt, ISO-8601 with offset.
Example:2026-09-06T10:00:00-03:00numeroTentativaintegeroptionalAttempt number (nTentativa), optional.
Example:1motivointegerrequiredReason (tpMotivo):
1receiver absent,2refused,3wrong address,4other (requiresjustificativa).Values:1234Example:2justificativastringrequired for `motivo=4`Justification, 15 to 256 characters.
latitudenumberoptionalAttempt latitude (optional), registered with six decimals.
longitudenumberoptionalAttempt longitude (optional), registered with six decimals.
hashTentativastringoptionalHash of the attempt image (hashTentativaEntrega), optional.
dataHashTentativastringoptionalDate and time the image was generated, ISO-8601 with offset, optional.
chavesNfearrayoptionalKeys of the NF-e involved (44-digit strings), optional.
Responses
Event registered with SEFAZ. The event object is returned synchronously.
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 |
|
| 10017040 | 400 | The document status does not allow the event; the CT-e must be |
| 10017042 | 400 | Invalid event text (length out of range after sanitization). |
| 10017043 | 400 | SEFAZ rejected the event; |
| 10001001 | 400 | Request field validation failed (one entry per field); fix per |
Text sanitization and coordinates
Text fields are sanitized (accents stripped, whitespace collapsed) before length validation; text that falls out of range after sanitization returns 10017042. Coordinates are registered with six decimals.
