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)