POST
/api/cte/cce更正函(CC-e)
对一张已授权的 CT-e 登记一份电子更正函(事件 110110)。CC-e 不能更正影响税额的金额、变更开具方/承接方/发件方/收件方的登记数据,或开具日期。每条更正需指明组、字段和新值。仅能对通过本平台开具、已授权且未取消的 CT-e 登记更正函。
必需请求头
tokenstring | string | 开票公司的 Token |
signstring | string | MD5 签名 |
timestampstring | string | Unix 时间戳(秒) |
Body
chCTe*string | string | CT-e 访问密钥(44 位) |
infCorrecao[]*array | array | 更正项(最少 1 项,最多 20 项) |
grupoAlterado*string | string | 被更改的组(例如:"ide"、"rem"、"dest") |
campoAlterado*string | string | 被更改的字段(例如:"xNome") |
valorAlterado*string | string | 新值 |
nroItemAlteradoint | int | 被更改项的编号(当该组为列表时) |
* 必填字段。使用条件(xCondUso)由服务器自动填充。
示例
# sign = md5(token + path + body + timestamp) # 按接口路径生成的调用模板,占位符替换为实际值 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"
}