Skip to main content

NF-e Issuance

NF-e Statuses​

draft β†’ pending β†’ processing β†’ issued
↓ (error) β†’ error

issued β†’ pending_cancel β†’ canceling β†’ canceled
↓ (error) β†’ error
StatusDescription
draftDraft, not yet submitted
pendingQueued for issuance
processingBeing processed by the provider (async)
issuedSuccessfully issued
pending_cancelMarked for cancellation
cancelingCancellation in progress
canceledSuccessfully canceled
errorIssuance/cancellation failed after exhausting attempts

NF-e Fields​

Identification​

FieldDescription
InvoiceAssociated invoice
Billing accountCustomer
CompanyIssuing company

Numbers and Keys​

FieldDescription
NF-e numberSequential number
SeriesNF-e series
Key44-digit key
Verification codeFor lookup
RPS numberProvisional Service Receipt

Service​

FieldDescription
Amount (cents)Service amount
Service codeLC 116/2003 code
DescriptionDescription of the service provided
CNAE codeActivity classification
NBS codeBrazilian Nomenclature of Services

Taxes​

The NF-e stores the breakdown of calculated taxes:

  • ISS (rate and amount)
  • PIS, COFINS, CSLL
  • IRRF
  • INSS

URLs​

FieldDescription
XML URLDownload the invoice XML
PDF URLDownload the DANFE in PDF

Customer Snapshot​

The NF-e stores a snapshot of the customer data at the time of issuance:

  • Name, document, email, phone
  • Full address with IBGE city code

This ensures the invoice reflects the correct data even if the customer updates their information later.

Audit Trail​

Each HTTP request made to the provider is recorded in NfeRequestTry:

  • Action (issue, cancel, query)
  • Endpoint called
  • Complete request and response
  • HTTP status
  • Duration in milliseconds
  • Result (success/failure)

Screenshots​

NF-e list​

The /dashboard/nfes screen lists all issued fiscal invoices, with filters by status (pending, processing, issued, error, canceled), company, customer, range and number. Each row shows number, amount, calculated taxes, invoice/origin and actions (download XML, PDF, resend, cancel).

List of NF-e with status, amount and taxes

NF-e detail​

The /dashboard/nfes/[id] page brings together the complete fiscal data: issuer, recipient, items (with LC 116/municipal codes), calculated taxes, withholdings, XML returned by the municipality, PDF and history of attempts at the provider.

NF-e detail with taxes, XML and provider attempts