/api/nfce/company/updateUpdate 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
tokenstring | string | NFC-e company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body (all fields optional — send ≥ 1)
| Identification | ||
namestring | string | Company name |
aliasstring | string | Trade name |
iestring | string | State Registration |
invoice_string | string | Tax regime |
emailstring | string | |
telefonestring | string | Phone |
| Address | ||
cepstring | string | ZIP code (auto-updates stateCode and ibge) |
addressstring | string | Street address |
house_string | string | Number |
complementostring | string | Complement |
townstring | string | Neighborhood |
citystring | string | City |
statestring | string | UF |
| NFC-e | ||
csc_string | string | CSC ID |
cscstring | string | CSC token |
serie_int | int | Series |
number_int | int | Starting 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_string | string | Contents of the A1 certificate file (.pfx/.p12), Base64-encoded. When cert_pwd is not sent in the same request, the stored password is used for validation |
cert_string | string | Deprecated — rejected from 2026-09-01. Certificate HTTPS URL |
cert_string | string | Certificate 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
{
"alias": "Loja Centro - Filial 02",
"telefone": "11988888888",
"serie_nfce": 2,
"number_nfce": 1
}
{
"success": true,
"message": "Empresa NFC-e atualizada com sucesso"
}