POST
/api/nfce/company/getGet NFC-e company
Returns the NFC-e company data identified by the token header. Note: method is POST but no body fields are required — the company is resolved only by token. The certificate content is not returned: cert_file is the legacy certificate URL and is an empty string for companies registered with cert_content; csc is returned in plain text; number_nfce is the value stored at registration and does not indicate the next number.
Required headers
tokenstring | string | NFC-e company token |
signstring | string | MD5 signature |
timestampstring | string | Unix timestamp in seconds |
Body
Empty. {} may be sent.
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/get" \ -H "Content-Type: application/json" \ -H "token: $TOKEN" \ -H "timestamp: $TIMESTAMP" \ -H "sign: $SIGN" \ -d @body.json
{
"success": true,
"data": {
"company_id": 10234,
"cnpj": "12345678000199",
"name": "Empresa Exemplo LTDA",
"alias": "Loja Centro",
"ie": "123456789",
"invoice_type": "simples_nacional",
"email": "contato@empresa.com",
"telefone": "11999999999",
"cep": "01001000",
"address": "Rua Exemplo",
"house_number": "100",
"complemento": "Sala 5",
"town": "Centro",
"city": "São Paulo",
"state": "SP",
"state_code": "SP",
"cert_file": "",
"csc_id": "000001",
"csc": "ABCDEF0123456789",
"serie_nfce": 1,
"number_nfce": 42
}
}