TF Fiscal

NFC-e Consumer Invoices

POST/api/nfce/company/update

Update NFC-e company

Updates the NFC-e company identified by the token header. All body fields are optional — send only those you want to change. When cep is updated, the system automatically resolves stateCode and ibge. When either cert_content or cert_pwd is sent, the certificate is opened with the values sent (the stored value is used for whichever is omitted); when it cannot be opened or has expired, an error is returned and none of the changes in the request is saved. cert_file is no longer supported; sending it returns an error. After serie_nfce or number_nfce is sent, if no NFC-e has been issued in the series yet, the first one uses number_nfce; when the series already has issued invoices, numbering is not changed. When the CEP cannot be resolved, stateCode and ibge stay unchanged. A body with no updatable field returns the error Nenhum campo para atualizar.

Required headers

tokenstringstringNFC-e company token
signstringstringMD5 signature
timestampstringstringUnix timestamp in seconds

Body (all fields optional — send ≥ 1)

Identification
namestringstringCompany name
aliasstringstringTrade name
iestringstringState Registration
invoice_typestringstringTax regime
emailstringstringEmail
telefonestringstringPhone
Address
cepstringstringZIP code (auto-updates stateCode and ibge)
addressstringstringStreet address
house_numberstringstringNumber
complementostringstringComplement
townstringstringNeighborhood
citystringstringCity
statestringstringUF
NFC-e
csc_idstringstringCSC ID
cscstringstringCSC token
serie_nfceintintSeries
number_nfceintintStarting number: when no NFC-e has been issued in the series yet, the first one uses this number; when the series already has issued invoices, numbering is not changed
cert_contentstringstringContents of the A1 certificate file (.pfx/.p12), Base64-encoded.
cert_filestringstringDeprecated — rejected from 2026-09-01.
cert_pwdstringstringCertificate password

At least 1 body field is required. CNPJ is immutable.

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