TF Fiscal

NF-e Tax Codes

POST/api/category/delete

Delete tax category

Removes the category with this category_id in every company of the same user (uid). Irreversible, and there is no existence check: the response is success: true even if the ID does not exist. The API keeps no product registry: any issuance that still sends this category_id will fail ("Tipo de tributo não existe" or "ICMS não resolvido") — update your system before deleting.

Required headers

tokenstringstringCompany token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body

category_id*stringstringID of the category to delete

 * 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/category/delete" \
  -H "Content-Type: application/json" \
  -H "token: $TOKEN" \
  -H "timestamp: $TIMESTAMP" \
  -H "sign: $SIGN" \
  -d @body.json