Pular para o conteúdo principal

NF-e authority events (NT 2025.002-RTC)

NT 2025.002-RTC (Brazilian Consumption Tax Reform) introduced, for NF-e (model 55), a set of issuer authority events that record facts occurring after the invoice is authorized (spoilage, integral payment, delivery-forecast update, etc.). This guide describes the functional contract of those events in the Product NF-e issuance API.

Currently unavailable

The entire events surface is implemented in the API but protected by a feature flag (DFeEvents) that has not been enabled yet — by product decision. Until it is released, any call returns:

503 Service Unavailable
{ "errors": [ { "message": "DFe events surface is currently disabled in this environment." } ] }

The contract is published here to give predictability to customers and pilot customers; until release (which will be announced), details may change.

info

NFC-e (model 65) is out of scope for this Technical Note — the events apply only to NF-e (model 55).

Endpoints

A single endpoint registers all 7 events; the type is chosen by the type field (case-sensitive), and the event fields go at the root of the body (there is no nested detail).

MethodRoutePurpose
POST/v2/companies/:companyId/productinvoices/:invoiceId/authority-eventsRegister an event (including cancellation)
GET/v2/companies/:companyId/productinvoices/:invoiceId/authority-eventsList the events actually registered at SEFAZ
GET/v2/companies/:companyId/productinvoices/:invoiceId/authority-events/:authorityEventIdFetch a single event in any state
GET/v2/companies/:companyId/productinvoices/:invoiceId/authority-events/:authorityEventId/xmlGet the event XML URL

The full contract (request/response schemas, examples and status codes) is in the API reference: Product Invoice issuance API (NFe/NFCe) - RTC.

The 7 events

typetpEventoUse
ExpectedDeliveryUpdate112150Update the expected delivery date
IntegralPayment112110Report integral payment (releases the buyer's presumed credit)
Spoilage112130Spoilage, loss, robbery or theft in transport contracted by the supplier (CIF)
UnfulfilledSupply112140Items paid in advance that were not supplied
AlcZfmImport112120ALC/ZFM import not converted into exemption
PersonalUseAllocation211120Allocation of an imported NF-e item to personal use
CancelDFeEvent110001Cancel a previously registered event

Single-field events

ExpectedDeliveryUpdate, IntegralPayment and AlcZfmImport carry a few scalar fields at the body root (e.g., the new expected delivery date). See the API reference for the exact fields of each type.

Item-list events

Spoilage, UnfulfilledSupply and PersonalUseAllocation reference items of the original NF-e. Each item provides, at minimum, the item number (itemNumber > 0) and the affected quantity (> 0), validated against the referenced invoice.

Cancellation

Cancelling an event uses the same POST endpoint with type: "CancelDFeEvent"there is no /cancel route. You must provide:

  • targetEventId — the id of the event to cancel (from the original POST or from a query);
  • the justification (15 to 1000 characters).

An event can only be cancelled when its status equals Merged (registered at SEFAZ) and it has not been cancelled yet.

Life cycle (asynchronous)

Submission to SEFAZ is asynchronous. The POST returns 202 confirming only the registration and enqueue — the final result arrives via WebHook or by querying the event by id.

  • Event status: PendingXmlSignedSentMerged (registered); or Failed / Cancelled.
  • WebHooks: dfe_event_successfully, dfe_event_error, dfe_event_failed, dfe_event_cancelled.
  • GET .../authority-events (list) returns only the events actually registered at SEFAZ (protocols 135, 136 or 155). Events still processing or that failed do not appear in the list — to track them, query by id.

Do not confuse this with GET /productinvoices/{invoiceId}/events, which returns the invoice's internal processing history (platform flow), not the NT authority events.

Status codes

CodeMeaning
202Event registered and enqueued for submission to SEFAZ
200Successful query (event, list or XML URL)
400Invalid body or invoice in an incompatible state
404Invoice (or event) not found
422Incompatible event type or detail
503Feature disabled in this environment (DFeEvents feature flag)

NFE.io

A NFE.io é uma empresa de tecnologia que fornece soluções para automatizar e simplificar a emissão e gestão de notas fiscais eletrônicas. Com suas ferramentas, as empresas podem economizar tempo e reduzir erros, aumentando a eficiência e precisão do processo de emissão de notas fiscais.

Um dos principais cases de sucesso da NFE.io é a implementação da solução na empresa de transporte Rodonaves. Com a automatização da emissão e gestão de notas fiscais eletrônicas, a Rodonaves conseguiu reduzir em até 80% o tempo gasto nesse processo, o que se traduziu em uma significativa melhoria na eficiência operacional. Além disso, a empresa também conseguiu eliminar erros e atrasos na emissão de notas fiscais, o que melhorou a relação com seus clientes e aumentou a confiança dos órgãos fiscais.

Outro exemplo é a implementação da NFE.io na empresa de comércio eletrônico, a Loja Integrada. Com a automatização da emissão de notas fiscais, a Loja Integrada conseguiu aumentar a velocidade de emissão de notas em até 10 vezes, o que permitiu que a empresa atendesse a uma maior quantidade de clientes e, consequentemente, aumentar as suas vendas.

Além desses exemplos, a NFE.io também tem outros cases de sucesso com empresas de setores como indústria, construção, varejo e serviços, mostrando a versatilidade e eficácia da sua solução.

Em resumo, a NFE.io é uma empresa de tecnologia que oferece soluções para automatizar e simplificar a emissão e gestão de notas fiscais eletrônicas, ajudando as empresas a economizar tempo e reduzir erros, melhorando a eficiência e precisão do processo. Com cases de sucesso em diferentes setores, a NFE.io tem se destacado como uma empresa líder em automação fiscal.