NFC-e Fiscal Category Management
Fiscal categories define the tax rules applied to products when issuing NFC-e. Unlike NFe, NFC-e only operates with intrastate sales, so the structure is simplified: a single object per tax type, without the need for multiple scenarios.
Note: NFC-e categories are stored separately from NFe categories. Each category includes ICMS, PIS, COFINS, and IBS/CBS settings. All endpoints in this section require the
token, sign, and timestamp headers.
POST
/api/nfce/category/createCreate NFC-e tax category
Creates an NFC-e tax category. Each category has a single scenario (intrastate outbound) and uses flat objects for ICMS, PIS, COFINS and IBS/CBS (no array, since NFC-e does not allow multiple scenarios per category). No IPI. The category_id is always generated by the API (a category_id sent in the body is ignored), and NFC-e IDs do not work for NF-e or vice versa.
Required headers
tokenstring | string | NFC-e company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body (root)
descricao*string | string | Category description |
codigo_*string | string | CFOP code (e.g. 5102, 5405) |
icms*object | object | ICMS configuration (flat object) |
situacao_*string | string | CST/CSOSN (e.g. 102, 500). NFC-e does not state ST as a separate amount on the invoice: use CST 60 / CSOSN 500 for goods with ST previously withheld. CRT 2 (Simples above the sub-limit) also uses the 2-digit CST. At issuance, a CST/CSOSN that does not match the company's CRT is refused before reaching the tax authority (Rejection 590/591) |
aliquota_decimal | decimal | Base reduction percentage |
aliquota_decimal | decimal | ICMS-ST base reduction percentage |
aliquota_decimal | decimal | Simples Nacional credit rate in % (CSOSN 101, 201, 900) |
aliquota_decimal | decimal | ICMS deferral percentage (CST 51) |
motivo_string | string | Exemption reason code |
ad_decimal | decimal | Single-phase ICMS — ad rem rate in BRL/unit (CST 02, 15, 53) |
ad_decimal | decimal | Single-phase ICMS — withheld ad rem in BRL/unit (CST 15, 61) |
p_decimal | decimal | Single-phase ICMS — deferral percentage (CST 53) |
q_decimal | decimal | Single-phase ICMS — taxed quantity (liters/kg); 0 uses the item quantity (CST 02, 15, 53, 61) |
valor_decimal | decimal | Exempted ICMS amount in BRL — emits vICMSDeson (CST 40, 41, 50, 90) |
v_decimal | decimal | Calculation base of the ICMS-ST withheld in the previous operation (provided, not calculated — CST 60, CSOSN 500) |
p_decimal | decimal | Rate borne by the final consumer, in % (provided, not calculated — CST 60, CSOSN 500) |
v_decimal | decimal | ICMS-ST amount withheld in the previous operation (provided, not calculated — CST 60, CSOSN 500) |
v_decimal | decimal | Substitute's own ICMS amount (provided, not calculated — CST 60, CSOSN 500) |
v_decimal | decimal | Calculation base of the FCP withheld by ST (provided, not calculated — CST 60, CSOSN 500) |
p_decimal | decimal | FCP rate withheld by ST, in % (provided, not calculated — CST 60, CSOSN 500) |
v_decimal | decimal | FCP amount withheld by ST (provided, not calculated — CST 60, CSOSN 500) |
aliquota_array | array | Rates per state: [{ "estado": "SP", "aliquota": 18.00 }].In NFC-e only the row for the issuer's state is used (this also applies to the other per-state arrays) |
aliquota_array | array | ICMS-ST rate per state: [{ "estado": "SP", "aliquota": 18.00 }] |
aliquota_array | array | MVA/IVA-ST per state: [{ "estado": "SP", "aliquota": 40.00 }] |
aliquota_array | array | FCP per state: [{ "estado": "SP", "aliquota": 0.00 }] |
aliquota_array | array | FCP-ST per state: [{ "estado": "SP", "aliquota": 0.00 }] |
beneficio_array | array | Tax benefit per state: [{ "estado": "SP", "codigo": "SP800001" }] |
pis*object | object | PIS configuration (flat object) |
cofins*object | object | COFINS configuration (flat object) |
ibs_object | object | IBS/CBS configuration (Tax Reform, optional). Without it the NFC-e is issued without the IBS/CBS group |
situacao_*string | string | IBS/CBS CST (3 digits). Supported: 000, 010, 011, 200, 220, 221, 222, 400, 410, 510, 515, 550, 620, 800, 810, 811, 820, 830. Registration does not validate the list: any other CST produces an empty IBSCBS group and a rejection |
classificacao_*string | string | cClassTrib — 6 digits, starting with the CST (e.g., "000001").In 2026 a Simples issuer (CRT 1/4) does not need to send IBS/CBS — the example below (CSOSN 102) includes the object only to show the format |
p_string | string | IBS state rate in % (optional; empty or "0" uses the transition default, 0.10 in 2026).Accepts dot or comma |
p_string | string | IBS municipal rate in % (optional; default 0 in 2026) |
p_string | string | CBS rate in % (optional; empty or "0" uses the default 0.90 in 2026) |
p_string | string | Rate reduction percentage — always provide it for CST 011, 200 and 515 (without it the full rate is applied) |
p_string | string | Deferral percentage (CST 510, 515) |
p_string | string | Tax base reduction percentage (CST 222) |
proporcaostring | string | Operation proportion in % — always provide it for CST 221 (without it the tax is 0) |
aliquota_string | string | Single-phase CBS — rate in % over the base; takes precedence over valor_unidade_cbs (CST 620).If either aliquota_cbs_mono or aliquota_ibs_mono is greater than 0, both taxes use the percentage and both valor_unidade_* are ignored |
aliquota_string | string | Single-phase IBS — rate in % over the base; takes precedence over valor_unidade_ibs (CST 620) |
valor_string | string | Single-phase CBS — ad rem in BRL/unit; only used when there is no percentage rate (CST 620) |
valor_string | string | Single-phase IBS — ad rem in BRL/unit; only used when there is no percentage rate (CST 620) |
valor_string | string | Legal base deduction value in BRL (CST 830) |
desconta_boolean | boolean | When true, the line's ICMS is deducted from the PIS/COFINS base, which becomes (base − ICMS), with a minimum of 0; applies only to percentage-based PIS/COFINS. Default false: the base does not deduct ICMS |
desconta_boolean | boolean | Computes the IBS/CBS base with the official RFB formula (unified base of the regular-regime calculator): item value (product + freight + insurance + other − discount) + II − ICMS − FCP − single-phase ICMS − DIFAL and destination-state FCP − ISSQN − PIS − COFINS, floor 0 (PIS and COFINS are only deducted in 2026); if desconta_icms_pis_cofins is also true, the already-reduced PIS/COFINS is used; default false |
pis / cofins
situacao_*string | string | PIS/COFINS CST |
aliquota*string | string | Percentage rate (e.g. "0.00", "1.65", "7.60"). Required even for CST 03 (send "0"); for per-quantity taxation without valor_unidade, aliquota is read as BRL/unit |
valor_string | string | PIS/COFINS by quantity — value in BRL/unit; v = quantity × value (CST 03 and other per-quantity forms) |
* 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/create" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"descricao": "Bebidas não alcoólicas",
"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"
}
}