NF-e: company and state registration
What a company needs before issuing an NF-e: address, state registration (IE), tax regime and the series.
To issue an NF-e, the company needs a complete address (street, number, district, ZIP and the IBGE city code), the state (UF), the **state registration (IE)** and the **tax regime (CRT)**. The NFS-e does not need the IE or the CRT, so a company that only issues services is not asked for them.
Set the NF-e data
PUT /v1/companies/:id/nfe-settings
curl -X PUT https://api.corvo.tech/v1/companies/$COMPANY_ID/nfe-settings \
-H "X-API-Key: $CORVO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "stateRegistration": "110042490114", "defaultSeries": 1 }'Response
{
"data": {
"companyId": "5b8b6a0e-3c6f-4f4e-9a1b-0d7a6d5c2e11",
"stateRegistration": "110042490114",
"crt": 1,
"defaultSeries": 1,
"defaultNatOp": "Venda de mercadoria",
"defaultCsosn": "102",
"missing": []
}
}| Field | What it is |
|---|---|
stateRegistration | IE of the company, digits only. Corvo checks it is valid for the company's state. ISENTO is not valid for an issuer. |
crt | Optional. It follows the tax regime of the company (1 Simples Nacional, 4 MEI); send it only to override. Other regimes are not accepted yet. |
defaultSeries | Series of the new notes (0 to 999, default 1). |
defaultNatOp | Nature of the operation when the note does not send one (default Venda de mercadoria). |
defaultCsosn | 102 (no tax credit), 101 (with credit, needs pCredSN), 400 (not taxed) or 500 (ICMS charged before by substitution), used by items without their own tax.csosn. |
missing | What the company still lacks to issue (state_registration, crt, address_street...). Empty means ready. |
In the dashboard, the same data is in the company page, in the **NF-e** section, which also lists what is missing. It is there for every account.