In an aidd repository, use when code touches VAT, invoices, credit notes, e-invoicing, EN 16931, Peppol, OSS, IOSS, reverse charge, KSeF, or tax reporting.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Tax And E Invoicing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/thaithienvanid-tax-and-e-invoicing)
---
name: tax-and-e-invoicing
description: "In an aidd repository, use when code touches VAT, invoices, credit notes, e-invoicing, EN 16931, Peppol, OSS, IOSS, reverse charge, KSeF, or tax reporting."
---
<!-- generated by `aidd gen-docs` from schemas/packs.json; edit the registry, not this file -->
# Tax and e-invoicing
## Scope
Applies when the change touches invoices, VAT, e-invoicing networks, or tax reporting. Not when the product issues, receives, and reports no invoice, because a payment provider or a merchant of record does. Neighbours: `aidd-domains:payments-and-finance`, `aidd-domains:commerce-and-marketplaces`, `aidd-domains:internationalization`.
## Terms
- **Place of supply**: The country whose VAT applies. A consumer's telecoms, broadcasting, and electronic services are taxed where they live, except under the EUR 10,000 EU threshold.
- **Reverse charge**: The business customer, not the supplier, accounts for the VAT on the supply.
- **Electronic invoice**: An invoice issued, sent, and received in a structured format a machine processes. A PDF by e-mail is not one.
- **Credit note**: A document that amends and refers to the first invoice. It counts as an invoice.
- **OSS and IOSS**: One registration in one Member State to declare and pay the VAT due in the others. IOSS is its import scheme.
- **CIUS**: A core invoice usage specification: a set of restrictions on EN 16931, such as Peppol BIS Billing.
## Standards
| # | Standard | Edition | Checked | Source |
| --- | --- | --- | --- | --- |
| S1 | EU VAT: place of supply, invoices, and the One-Stop Shop | Directive 2006/112/EC; Implementing Regulation (EU) No 282/2011 | 2026-11-04 | <https://vat-one-stop-shop.ec.europa.eu/one-stop-shop_en> |
| S2 | EU VAT in the Digital Age (ViDA) | Council Directive (EU) 2025/516 | 2026-11-04 | <https://publications.europa.eu/resource/celex/32025L0516> |
| S3 | EN 16931, the European standard on e-invoicing | EN 16931-1 (2026 version) | 2026-11-04 | <https://ec.europa.eu/digital-building-blocks/sites/display/DIGITAL/Obtaining+a+copy+of+the+European+standard+on+eInvoicing> |
| S4 | Peppol BIS Billing 3.0 | 3.0.21 (May 2026 release) | 2026-11-04 | <https://docs.peppol.eu/poacc/billing/3.0/> |
| S5 | Germany: domestic B2B e-invoices | Umsatzsteuergesetz § 14 and § 27(38) | 2026-11-04 | <https://www.gesetze-im-internet.de/ustg_1980/__14.html> |
| S6 | France: e-invoicing and e-reporting via an approved platform | — | 2026-11-04 | <https://www.impots.gouv.fr/professionnel/questions/partir-de-quand-suis-je-concerne-par-la-reforme-de-la-facturation> |
| S7 | Belgium: B2B e-invoices over Peppol | — | 2026-11-04 | <https://einvoice.belgium.be/en/article/structured-electronic-invoices-between-companies-are-compulsory-2026> |
| S8 | Poland: the National e-Invoice System (KSeF) | KSeF 2.0, logical structure FA(3) | 2026-11-04 | <https://ksef.podatki.gov.pl/informacje-ogolne-ksef-20/podstawy-prawne-oraz-kluczowe-terminy/> |
## Dated obligations
| From | Obligation | Standard |
| --- | --- | --- |
| 2025-04-14 | ViDA is in force: a Member State may require domestic e-invoices without the buyer's acceptance. | S2 |
| 2026-01-01 | Belgium: invoices between Belgian VAT-liable businesses are structured e-invoices over Peppol. | S7 |
| 2026-02-01 | Poland: KSeF is mandatory if 2024 sales, tax included, passed PLN 200 million, and for the rest from 2026-04-01. | S8 |
| 2026-09-01 | France: every business receives e-invoices via an approved platform; large and mid-size ones issue them and e-report, the rest from 2027-09-01. | S6 |
| 2027-01-01 | Germany: a domestic B2B invoice is an e-invoice. An issuer with EUR 800,000 turnover or less the year before, or EDI, may wait to 2027-12-31. | S5 |
| 2028-07-01 | ViDA: a platform for short-term rentals or road passenger transport is the deemed supplier, from 2028-07-01 at the earliest and in every state by 2030-01-01. | S2 |
| 2030-07-01 | ViDA: an intra-EU B2B invoice is an EN 16931 e-invoice issued within 10 days, its data sent to the tax authority as it is issued. | S2 |
## Invariants and missed cases
| Always true | The case a plan misses |
| --- | --- |
| An issued invoice never changes; a credit note that refers to it corrects it. | An edit button on a sent invoice, or a refund with no credit note. |
| Each invoice number is sequential in its series and identifies one invoice. | Two workers numbering at once, or a number reused after a failed send. |
| An EU invoice states its VAT in the Member State's currency, whatever its own currency. | A USD invoice to an EU customer with its VAT in USD only. |
| A consumer's country rests on two pieces of evidence that agree, or one while such sales stay under EUR 100,000 this year and last. | An IP address alone, or a billing address that contradicts the bank. |
| Invoices outlive the account: OSS records stay 10 years. | An account deletion that deletes the customer's invoices. |
## Checklist by loop step
| Step | Item | Standard |
| --- | --- | --- |
| Before the first edit (`aidd risk --paths`) | Invoices, tax amounts, or tax reports: the author declares the change major, with a finance reviewer. Name each market, and whether each buyer is a business or a consumer. | S1 |
| Specify | Each line's tax follows its place of supply: the consumer's location evidence, the reverse charge for a business buyer's VAT number, the OSS for EU consumer sales. | S1 |
| Specify | An invoice carries the content the law lists, a sequential number, and its VAT in national currency. A correction is a credit note that refers to it. | S1 |
| Specify | Each market's e-invoice mandate, its date read at the tax authority, and its format: EN 16931 in UBL or CII, Peppol BIS on Peppol, FA(3) on KSeF. | S3, S4, S8, S7 |
| Specify | Plan for ViDA's dates in Dated obligations, so an invoice is EN 16931 data from the start. | S2 |
| Implement | An issued invoice is immutable and stays readable and intact for its retention period; an erasure request never deletes it. | S1 |
| Implement | Every e-invoice passes the syntax schema and the CIUS rules before it is sent; tax is rounded as the CIUS says, the same as in the ledger. | S3, S4 |
| Implement | Each send to Peppol, KSeF, or an approved platform is idempotent per invoice; its acknowledgement, rejection, or KSeF number is stored with it. | S4, S8, S6 |
| Implement | The product receives e-invoices where it must: in Germany from domestic suppliers, in Belgium even with only private clients, in France from 2026-09-01. | S5, S7, S6 |
| Review | A rate change, a credit note after a partial refund, a reverse-charged sale, and a changed buyer VAT number each have a test. | S1 |
| Roll out | Rejected or unsent e-invoices and failed reports are the observe signals. A rollback credits an issued invoice, never deletes it. | S1, S4 |
## Test commands
| Command | Proves | How | Standard |
| --- | --- | --- | --- |
| E-invoice validation | every e-invoice the product issues passes the syntax schema and the EN 16931 and CIUS rules | each generated invoice and credit note checked in CI against the UBL or CII schema and the published Schematron files | S3, S4 |
| Invoice immutability test | an issued invoice cannot change or be deleted, an account's erasure included, and a correction is a credit note | integration tests that edit, delete, renumber, and correct an issued invoice, and erase its account | S1 |
| Invoice numbering race test | concurrent issuing gives each invoice a unique sequential number in its series | parallel issue requests in an integration test, then a check of each series | S1 |
| Place-of-supply table tests | each line's tax is right for each pair of seller and buyer country, business or consumer | table-driven tests over country pairs, with or without a VAT number, and location evidence that agrees or conflicts | S1 |
| Tax platform send test | a resent invoice is accepted once, and a rejection is stored and shown | the network's or platform's test environment: each invoice sent twice, and one invalid | S4, S8, S6 |
- From `aidd-domains:payments-and-finance`: Ledger property tests.
## Owned elsewhere
- Who charges VAT or sales tax on a marketplace sale: the deemed supplier and the marketplace facilitator: `aidd-domains:commerce-and-marketplaces`.
## Keep it current
Each entry is due after its `review_every_days` (else emerging 90 days, established 365) or by its `review_due`. An emerging one applies only when the change needs it, said in the Spec. One `aidd eval standards` lists as due is looked up in Specify, and a missing one is proposed to aidd's `schemas/industry-standards.json`.