Urgent.News

What's breaking now, across thousands of outlets.

Tech

Using the ANAF API to monitor Romanian suppliers' VAT and inactive status

Romanian tax law has a rule that bites quietly. If you buy from a supplier while it is listed in ANAF's register of inactive taxpayers , you can't deduct the expense or the VAT on that purchase (Fiscal Code, art. 11(7); there are exceptions for forced execution and certain insolvency cases). If the supplier only had its VAT registration cancelled on one of the grounds in art. 316(11), it's a…

Romanian tax regulations have a provision that impacts suppliers listed in ANAF's inactive taxpayer registry. Purchasing from such suppliers disqualifies the expense and VAT deduction. However, if a supplier's VAT registration was canceled under specific grounds outlined in Article 316(11) of the Fiscal Code, the VAT deduction is lost on the day following the cancellation, not the expense. When a supplier reactivates or re-registers, the deduction can be restored.

The timing of this rule can be challenging to monitor. A supplier may be deemed active when onboarding but become inactive within three months. While most companies typically verify supplier status once during onboarding, it is advisable to seek professional tax advice for detailed guidance.

ANAF provides a public API to check up to 100 company identification numbers (CUIs) against a specific date. The API returns a JSON response containing details such as VAT registration status, inactive status, and deregistration date. The API's response is used to compare current supplier status with historical snapshots. If more than 20% of checks fail in a run, the previous snapshot is retained and no changes are reported.

To implement this monitoring system, one can create a script that calls the ANAF API, compares snapshots, and reports changes. The script handles edge cases such as failed checks and time-outs, and only reports confirmed changes. The script outputs a JSON object containing supplier details and changes, including the date of change and the nature of the change.

The author has packaged this functionality into a hosted version called Romania Supplier Monitor, available on the Apify platform. The service is free during the launch period, after which a charge of $2 per 1,000 companies checked will apply. Users can schedule the monitor weekly and integrate it with email, Slack, or webhook notifications. The hosted version provides a secure, private storage solution for the data, with all information stored within the user's Apify account.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

More from Tuesday 17 November →