Skip to content

Settings

Open Add-ons > Manage add-ons > RO e-Factura E-Invoicing for Romania > Settings.

Setting Default Description
Enable On When off, no new invoices are created or uploaded. Uploads already under way are still polled and downloaded.
Marketplace owner mode On On: every order is invoiced with the seller data and ANAF authorisation of the marketplace owner and vendors have no connection page. Off: each vendor connects its own company.
Debug log Off Also stores every HTTP call with masked request and response. Secrets are never stored.
Log retention (days) 90 Older log entries are removed by the cron run.
Create the document when the order status becomes P (Processed) The invoice is created once per order. You can also create it by hand on the order page.
Individuals (B2C) Report Report: invoices to buyers without a company tax id are uploaded too. Skip: they are not uploaded. See “Individuals” below.
Identifier for buyers without CNP 0000000000000 13 digits placed in the buyer’s legal identifier for individuals. The store never collects a personal identification number.
Buyers outside Romania Skip Skip: not uploaded. Report as extern: uploaded with the extern flag.
Mark invoices as paid On The invoice states the total as prepaid (typical for online shops). Off: the invoice is due after the payment term.
Payment means code 1 UNCL 4461 code for offline payment methods (1 not defined, 30 credit transfer, 10 cash, 48 bank card, ZZZ). Methods with an online processor use 48. Code 30 needs the seller IBAN.
Check with the ANAF validator before uploading Off Sends each document to ANAF’s validation service (no login) first and stops on its messages.
Credit the invoice automatically when the order status becomes empty Creates a full credit note for an accepted invoice when an order reaches this status (for example Canceled). Empty: credit notes by hand only.

Credentials are not ordinary settings: they are entered on the Connection page and stored encrypted (AES-256-GCM, key derived from your store’s own secret). Secrets are never shown again; leave a field empty to keep the saved value.

Field Description
Mode Test uses api.anaf.ro/test, Live uses api.anaf.ro/prod.
Client ID / Client secret From the ANAF portal (Editare profil OAuth). One pair for Test and one for Live.
Callback URL The https address registered for the application. Empty: the default address of the add-on’s callback in your admin panel.
Seller data Company name, CIF, VAT payer, trade register number, address, county code, IBAN. Printed on every invoice.
Number series Invoices SERIES000001, credit notes SERIESC000001.
Payment term Days until the due date when the invoice is not marked as paid.
VAT category of 0 % lines Z (zero rated), E (exempt) or O (outside the scope) for buyers in Romania, with the reason text for E and O. Ask your accountant. Lines to buyers abroad are classified automatically.
Authorise with ANAF Starts the browser login with the qualified certificate. Shows when the tokens expire.
Paste tokens instead Stores an access token and refresh token obtained elsewhere.

The rules for invoices to individuals have changed over time (the obligation to report them began in 2025 and relief was announced from 1 July 2026). The add-on lets you choose; check the current rule on anaf.ro with your accountant. When reported, the add-on uses the uploadb2c service of ANAF and the identifier above. Order data is used as it is: no personal identification number is requested from customers.

The queue runs from cron. Use either the command line or the secret web address shown in the Cron section of the settings:

  • php /path/to/store/admin.php --dispatch=kv_ro_efactura.cron
  • https://your-store.example/index.php?dispatch=kv_ro_efactura.cron&key=<secret>
  • Log lists every call and job with filters (level, action, text, dates) and a CSV export.
  • Jobs lists the queue. A job that fails for a temporary reason is retried after 5 minutes, 15 minutes, 1 hour, 3 hours and 12 hours, then marked “Gave up”; use Retry to queue it again. Status checks of uploaded invoices are repeated after 2, 5, 15, 60 and 180 minutes and by the cron run every hour after that.

The add-on adds an optional customer field Company tax ID (CUI / VAT ID) (shown in the profile and at checkout). If EU VAT Number Validation or EU e-Invoicing are installed, their field is used instead. Orders without a value are treated as individuals.

In the vendor panel a vendor sees only their own records. With the marketplace owner mode off the vendor also gets the Connection tab for their own company.