TF Fiscal

NFC-e Consumer Invoices

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/create

Create 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

tokenstringstringNFC-e company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body (root)

descricao*stringstringCategory description
codigo_cfop*stringstringCFOP code (e.g.
icms*objectobjectICMS configuration (flat object)
pis*objectobjectPIS configuration (flat object)
cofins*objectobjectCOFINS configuration (flat object)
ibs_cbsobjectobjectIBS/CBS configuration (Tax Reform, optional).
desconta_icms_pis_cofinsbooleanbooleanWhen 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.
desconta_icms_pis_cofins_ibs_cbsbooleanbooleanComputes 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_tributaria*stringstringPIS/COFINS CST
aliquota*stringstringPercentage rate (e.g.
valor_unidadestringstringPIS/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