POST
/api/cte/cceCorrection Letter (CC-e)
Registers an Electronic Correction Letter (event 110110) on an authorized CT-e. The CC-e cannot correct values that impact the tax, registration data that change the issuer/service taker/sender/recipient, or the issuance date. Each correction indicates the group, field and new value. A correction letter can only be registered for CT-e documents issued through this platform that are authorized and not cancelled.
Required headers
tokenstring | string | Token of the issuing company |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
chCTe*string | string | Access key of the CT-e (44 digits) |
infCorrecao[]*array | array | Corrections (minimum 1, up to 20) |
grupoAlterado*string | string | Changed group (e.g.: "ide", "rem", "dest") |
campoAlterado*string | string | Changed field (e.g.: "xNome") |
valorAlterado*string | string | New value |
nroItemAlteradoint | int | Number of the changed item (when the group is a list) |
* Required field. The condition of use (xCondUso) is filled in automatically by the server.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/cte/cce" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"chCTe": "35260626638419000167570010000000011123456780",
"infCorrecao": [
{
"grupoAlterado": "compl",
"campoAlterado": "xObs",
"valorAlterado": "OBSERVACAO CORRIGIDA"
}
]
}
{
"success": true,
"message": "Evento registrado e vinculado a CT-e",
"cStat": "135",
"chCTe": "35260626638419000167570010000000011123456780",
"nProt": "135260000123458",
"xml": "https://storage.../cte/35260626638419000167570010000000011123456780.xml"
}