POST
/api/nfce/category/editEdit NFC-e tax category
Note: Same structure as the
/api/nfce/category/create endpoint, with the additional required field category_id. The icms, pis, cofins and ibs_cbs fields are fully replaced (no merge). Omitting ibs_cbs erases the category's IBS/CBS, and omitting desconta_icms_pis_cofins / desconta_icms_pis_cofins_ibs_cbs resets the flag to false. If the category belongs to another company of the same user (uid), the call returns success but nothing is changed.
Required headers
tokenstring | string | NFC-e company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Additional field
category_*string | string | ID of the category to edit |
* Required field.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X POST "https://api.tffiscal.com/api/nfce/category/edit" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"category_id": "TF123",
"descricao": "Bebidas não alcoólicas — atualizado",
"codigo_cfop": "5102",
"icms": {
"situacao_tributaria": "102",
"aliquota_icms": [
{ "estado": "SP", "aliquota": 18.00 }
]
},
"pis": {
"situacao_tributaria": "99",
"aliquota": "0.00"
},
"cofins": {
"situacao_tributaria": "99",
"aliquota": "0.00"
},
"ibs_cbs": {
"situacao_tributaria": "000",
"classificacao_tributaria": "000001",
"p_ibs_uf": "0.1",
"p_ibs_mun": "0",
"p_cbs": "0.9"
}
}
{
"success": true,
"data": {
"category_id": "TF123"
}
}