GET
/api/category/get_detailTax category details
Returns the complete configuration of a tax category: all ICMS, IPI, PIS, COFINS, IBS/CBS and IS scenarios, including per-UF arrays (MVA, rates, tax benefits). Field names match those accepted by create/edit, so the result can be sent unchanged to /api/category/edit without data loss.
Required headers
tokenstring | string | Company token |
signstring | string | MD5 signature (path includes the query string) |
timestampstring | string | Unix timestamp in seconds |
Query string
category_*string | string | Tax category ID |
* Required field.
Examples
# sign = md5(token + path + body + timestamp) # Template generated from the endpoint path; replace the placeholders curl -X GET "https://api.tffiscal.com/api/category/get_detail" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN"
GET /api/category/get_detail?category_id=TF123
{
"success": true,
"data": {
"category_id": "TF123",
"descricao": "Venda de mercadoria padrão",
"disable_difal": false,
"desconta_icms_pis_cofins": false,
"desconta_icms_pis_cofins_ibs_cbs": false,
"icms": [{
"tipo_tributacao": "lucro_normal",
"cenario": "saida_dentro_estado",
"tipo_pessoa": "juridica",
"nao_contribuinte": false,
"codigo_cfop": "5102",
"situacao_tributaria": "00",
"aliquota_importacao": "",
"aliquota_credito": 0,
"aliquota_diferimento": 0,
"aliquota_diferimento_fcp": "",
"aliquota_reducao": 0,
"aliquota_reducao_st": 0,
"motivo_desoneracao": "",
"motivo_desoneracao_st": "",
"ad_rem_icms": 0,
"ad_rem_icms_ret": 0,
"p_dif_mono": 0,
"q_bc_mono": 0,
"valor_desoneracao": 0,
"v_bc_st_ret": 0,
"p_st": 0,
"v_icms_st_ret": 0,
"v_icms_substituto": 0,
"v_bc_fcp_st_ret": 0,
"p_fcp_st_ret": 0,
"v_fcp_st_ret": 0,
"aliquota_icms": [{"estado":"SP","aliquota":18}]
}],
"ipi": [{
"cenario": "padrao",
"tipo_pessoa": "juridica",
"situacao_tributaria": "99",
"codigo_enquadramento": "999",
"aliquota": "0",
"valor_unidade": ""
}],
"pis": [{
"cenario": "padrao",
"tipo_pessoa": "juridica",
"situacao_tributaria": "01",
"aliquota": "0.65",
"valor_unidade": ""
}],
"cofins": [{
"cenario": "padrao",
"tipo_pessoa": "juridica",
"situacao_tributaria": "01",
"aliquota": "3",
"valor_unidade": ""
}],
"ibs_cbs": [{
"cenario": "padrao",
"tipo_pessoa": "juridica",
"situacao_tributaria": "000",
"classificacao_tributaria": "000001",
"p_ibs_uf": "0.1",
"p_ibs_mun": "0",
"p_cbs": "0.9",
"p_red_aliq": "",
"p_dif": "",
"p_red_bc": "",
"proporcao": "",
"aliquota_cbs_mono": "",
"aliquota_ibs_mono": "",
"valor_unidade_cbs": "",
"valor_unidade_ibs": "",
"valor_deducao_legal": ""
}],
"is": [{
"cenario": "padrao",
"tipo_pessoa": "juridica",
"situacao_tributaria": "99",
"aliquota": "0.00"
}]
}
}