Install

Works with Drupal: ^10.3 || ^11 || ^12

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 51.07 KB
MD5: baa227f64a97b9fda43e225c3b0896e3
SHA-1: d8e583eb634510753961de4575b56a1587b28ff3
SHA-256: 52d7c3dcc9a6fdfb487a2a09c5f6d9a59476f991ed231d2aaab121d61743bffc
Download zip 88.33 KB
MD5: bcac6abeb512416755aa43a8e581c0ca
SHA-1: 25c466f05a198d0bbaebb8b372c096d4ade130e6
SHA-256: c5cfceef603ecdbb1b6b6d86862c861e05e9364946ad1e87e34b08c8669c7403

Release notes

Second alpha release. Issues Brazilian electronic invoices (NF-e and NFS-e) through Anuen. Not ready for production yet: test it with an Anuen testing token.

Changes since 1.0.0-alpha1

  • Adds the cspell project words (Brazilian tax terms and Portuguese test data) so the drupal.org CI passes. No functional changes.

Anuen (base module)

  • API client for customers, products, services, NF-e and NFS-e.
  • Local invoice entity with PDF and XML download.
  • Signed webhooks (HMAC-SHA256), handled once per event, ignoring out-of-order data.
  • Cron fallback that refreshes invoices still in progress.
  • Idempotent issuing: a retry never creates a duplicate invoice.
  • Token and webhook secret read from settings.php, never from exported config.
  • Connection test and status report checks.

Anuen Commerce (submodule)

  • Issues the NF-e automatically when an order is fully paid (queued, run on cron).
  • Invoices tab on the order: issue, resend rejected, cancel, correction letter, PDF/XML.
  • NF-e tax data field on product variations (NCM, CEST, CFOP, origin, CSOSN, unit, GTIN).
  • Configurable defaults for CFOP, payment method, freight and product tax data.
  • Order activity log entries (with commerce_log).
  • hook_anuen_commerce_nfe_alter() to customize the NF-e.

Known limitations

  • Shipping and fees are not included in the NF-e: the Anuen API has no fields for them.
  • The defaults fit a Simples Nacional retailer. Check your tax codes with an accountant.
  • Tested on Drupal 11. Drupal 10.3+ and 12 are supported but not yet tested on a real site.
Created by: thalles
Created on: 5 Dec 2026 at 14:38 UTC
Last updated: 5 Dec 2026 at 14:39 UTC
Bug fixes

Other releases