POST
/api/category/deleteDelete 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
tokenstring | string | Company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
category_*string | string | ID 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
{
"category_id": "TF123"
}
{
"success": true
}