TF Fiscal
Documentation

CT-e

Delivery failure

Registers event 110190, the delivery failure, on an authorized CT-e.

POST/openapi/v2/empresas/{empresaId}/cte/{cteId}/insucesso-entrega
Requires the token, timestamp and sign signature headers, see Authentication.

The delivery failure is the event by which the carrier records with SEFAZ that it tried to deliver and could not, saying when it tried and why it failed. Sent synchronously; on success the event object is returned. Keep the protocolo of the response: it is the protocoloEvento used by Cancel delivery failure.

Path parameters

empresaId*
stringCompany identifier
cteId*
stringDocument identifier

* Required field

Request body

dataTentativa*
stringAttempt time
numeroTentativa
intAttempt number
motivo*
intFailure reason
justificativa*
required for `motivo=4`
stringJustification
latitude
numberAttempt latitude
longitude
numberAttempt longitude
hashTentativa
stringImage fingerprint
dataHashTentativa
stringImage time
chavesNfe
arrayKeys of the NF-e in the attempt

* Required field

200
Event registered with SEFAZ. The event object is returned synchronously.
chaveAcesso
stringAccess key
tipo
stringEvent type
codigo
stringEvent code
sequencia
intSequence
status
stringReturn code
motivo
stringReason
protocolo
stringProtocol
data
stringRegistration time
linkXml
stringEvent XML link

Before measuring the length, the platform cleans text fields: accents are stripped and repeated whitespace collapses into a single space. This happens before the length validation; text that falls out of range after that cleanup returns 10017042.