NRA Audit File (Bulgaria)
Generation of the audit XML file for the Bulgarian National Revenue Agency (NRA) under Art. 52o of Ordinance N-18 on e-commerce.
- Sales and reversals for the previous calendar month, with payment methods mapped to the NRA nomenclature.
- Validation against the NRA XSD schema before sending.
- Automatic monthly e-mail delivery, plus manual generation from the admin or the console.
Extension
Description
The module generates the audit XML file that Ordinance N-18 requires from online stores under Art. 52o: all sales and reversals for the previous calendar month, with payment methods mapped to the nomenclature of the National Revenue Agency (NRA). Before sending, the file is validated against the NRA XSD schema, so a data error shows up in the store, not in a letter from the agency.
The file is created automatically by cron and sent to a configured e-mail; when needed it is also generated manually from the admin or via CLI — for a specific month or to check the settings. The mapping of payment methods is a table in the configuration, not code.
- XML under Art. 52o of Ordinance N-18: sales and reversals for the previous month.
- Mapping of every payment method to the NRA codes from the admin.
- Validation against the official XSD schema before sending.
- Scheduled e-mail delivery; manual generation via CLI and admin.
- Log of generated files with date, period and validation result.
Works with Magento 2.4 and Mage-OS. We update the module when the ordinance or the NRA schema changes.
Why a Magento extension from Webcode?
See also



