Skip to main content
NF-e

Open NF-e

Open NF-e

Opens and loads a Nota Fiscal Eletrônica (NF-e) XML file for processing. This must be the first action executed before any reading of the invoice data — every other action of the NF-e group depends on the return of this action.


Options

XML path

Enter the full path of the NF-e XML file that will be read.

Example: C:\Users\Roberty\Downloads\nf.xml

NF-e version

Select the NF-e version to guarantee the correct reading of the file structure.

VersionDescription
v4.00Current NF-e version (recommended)

Returns

Javascript code

js
actions["action-id"].json // complete NF-e data as a JSON object (Any)

Field selection

  • json — complete NF-e structure converted to JSON, used as a reference by the other actions of the NF-e group

Rules and Conditions

  • The XML path and NF-e version fields are required.
  • The file must be a valid and well-formed NF-e XML.
  • This action must be executed before any other action of the NF-e group.
  • The ID of this action is used as a reference in the other NF-e actions to indicate which invoice will be processed.

Next steps

After opening the NF-e, use the actions of the group to extract the desired data: