TF Fiscal

NFC-e Consumer Invoices

POST/api/nfce/category/edit

Edit 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

tokenstringstringNFC-e company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Additional field

category_id*stringstringID 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