VAT IDs, reverse charge and Stripe tax IDs in e-invoices
By evoicely · Last checked 20 October 2026
In an EN 16931 e-invoice (XRechnung, ZUGFeRD, Peppol BIS), your VAT ID goes in BT-31, a German tax number (Steuernummer) in BT-32, and your customer's VAT ID in BT-48.
A reverse-charge sale is VAT category AE at 0%, and its VAT breakdown needs the exemption reason code VATEX-EU-AE or the text "Reverse charge".
In Stripe, those values come from your account tax IDs (account_tax_ids on the invoice), the customer's tax IDs (customer_tax_ids, type eu_vat), and either the customer's tax_exempt: "reverse" or Stripe Tax's taxability_reason: "reverse_charge".
This page maps each one, lists the rules that check them, and shows reverse-charge XML that passes the official validators.
The business terms
EN 16931 defines these tax identifiers and VAT fields. The paths are the UBL and CII bindings used by XRechnung, ZUGFeRD and Peppol BIS Billing 3.0 (Peppol UBL syntax reference).
| Term | UBL | CII |
|---|---|---|
| BT-31 Seller VAT identifier | cac:AccountingSupplierParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID with tax scheme VAT | ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA" |
| BT-32 Seller tax registration identifier (e.g. Steuernummer) | A second cac:PartyTaxScheme whose tax scheme isn't VAT, for example FC | ram:SpecifiedTaxRegistration/ram:ID with schemeID="FC" |
| BT-63 Seller tax representative VAT identifier | cac:TaxRepresentativeParty/cac:PartyTaxScheme/cbc:CompanyID | ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID |
| BT-48 Buyer VAT identifier | cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID | ram:BuyerTradeParty/ram:SpecifiedTaxRegistration/ram:ID with schemeID="VA" |
| BT-151 / BT-152 Line VAT category and rate | cac:Item/cac:ClassifiedTaxCategory (cbc:ID, cbc:Percent) | ram:SpecifiedLineTradeSettlement/ram:ApplicableTradeTax (ram:CategoryCode, ram:RateApplicablePercent) |
| BG-23 VAT breakdown (BT-116 to BT-121) | cac:TaxTotal/cac:TaxSubtotal | ram:ApplicableHeaderTradeSettlement/ram:ApplicableTradeTax |
| BT-120 / BT-121 VAT exemption reason text and code | cbc:TaxExemptionReason, cbc:TaxExemptionReasonCode in cac:TaxCategory | ram:ExemptionReason, ram:ExemptionReasonCode |
Two things to note. VAT identifiers (BT-31, BT-48, BT-63) must start with a country prefix, ISO 3166-1 alpha-2, with EL allowed for Greece (rule BR-CO-09). And EN 16931 has no field for a buyer's tax number: the buyer can only be identified for VAT by BT-48, or by a legal registration identifier (BT-47).
Where the values come from in Stripe
Customer tax IDs → BT-48
Stripe stores tax IDs as Tax ID objects with a type and a value, attached to a customer
(Stripe: customer tax IDs).
EU VAT numbers, including German ones, have type eu_vat (for example DE123456789); Northern Ireland VAT numbers also use eu_vat with the prefix XI.
Other types relevant here are gb_vat (UK), ch_vat (Switzerland) and de_stn (German Steuernummer).
On a finalized invoice, read customer_tax_ids, not the Customer: until finalization it mirrors the customer's tax IDs, and after that it no longer changes (Invoice object). That's what you want, since the e-invoice must match the invoice as issued.
It also means a VAT ID added after finalization won't be on that invoice.
"customer_tax_exempt": "reverse",
"customer_tax_ids": [
{ "type": "eu_vat", "value": "ATU12345678" }
]
Stripe checks the format of an EU VAT number and verifies it once against the EU's VIES database; the result is in the Tax ID's verification.status (pending, verified, unverified or unavailable).
Stripe doesn't re-check it later, and the number appears on the invoice whether or not it was verified. Deciding what to do with an unverified number is up to you.
Account tax IDs → BT-31 and BT-32
Your own tax IDs are Tax ID objects on your account, up to 100 of them. The invoice's account_tax_ids is an array of their IDs; expand it to read type and value.
Stripe decides which ones go on an invoice in this order: IDs set explicitly on the invoice, subscription, payment link or Checkout Session; then, if you turned it on and the invoice uses automatic tax, the IDs matching the invoice's tax location; then your defaults
(Stripe: account tax IDs).
The field can be null, and it can only be changed while the invoice is a draft.
An eu_vat entry maps to BT-31 and a de_stn entry to BT-32. If you have neither on the invoice, the e-invoice still needs at least one of them, from somewhere else (see BR-DE-16 below).
Reverse charge: tax_exempt and Stripe Tax
Stripe has two ways to express reverse charge, and you'll meet both:
- The customer's
tax_exemptisnone,exemptorreverse. Withreverse, Stripe prints "Reverse charge" on the invoice and receipt PDFs (Customer object). The invoice keeps a copy incustomer_tax_exempt, frozen at finalization like the tax IDs. - Stripe Tax applies reverse charge automatically, based on the customer's tax ID and the locations involved, and reports it per tax entry as
taxability_reason: "reverse_charge"with a tax amount of 0 (Stripe: zero tax amounts and reverse charge). It does this when the tax ID has the right format, regardless of the VIES result.
Two Stripe details matter for the e-invoice. First, taxability_reason: "not_collecting" also has an amount of 0, but it only means you have no tax registration for the customer's location in Stripe Tax (or used the non-taxable product tax code). Inside the EU it doesn't say which VAT treatment applies. For services to a customer outside the EU it means Stripe Tax puts the place of supply there, outside the scope of EU VAT.
Second, with tax-inclusive prices, reverse charge doesn't change what the customer pays: the inclusive price becomes the net price. So the same price gives a different net unit price (BT-146) for a reverse-charge customer than for a domestic one.
VAT category codes and their rules
Every line (BT-151) and every VAT breakdown (BT-118) carries a category code from the UNTDID 5305 list as restricted by EN 16931 (UNCL5305 code list). Each category has its own set of business rules, BR-S-* for S, BR-AE-* for AE and so on (EN 16931 rules). The ones that involve tax IDs and exemption reasons:
| Code | Meaning and rate | What the rules require |
|---|---|---|
S | Standard rate (also reduced rates), rate above 0 | Seller VAT ID, tax registration ID or tax representative (BR-S-02). No exemption reason (BR-S-10). |
Z | Zero rated, rate 0 | Same seller IDs as S (BR-Z-02). No exemption reason (BR-Z-10). |
E | Exempt from VAT, rate 0 | Same seller IDs as S (BR-E-02). An exemption reason code or text (BR-E-10). |
AE | Reverse charge, rate 0 (BR-AE-05) | Seller VAT ID, tax registration ID or tax representative, and buyer VAT ID or legal registration ID (BR-AE-02). Reason VATEX-EU-AE or "Reverse charge" (BR-AE-10). |
K | Intra-community supply, rate 0 | Seller VAT ID (or tax representative) and buyer VAT ID (BR-IC-02). Reason VATEX-EU-IC or "Intra-community supply" (BR-IC-10). A delivery date or invoicing period (BR-IC-11) and a deliver-to country (BR-IC-12). |
G | Export outside the EU, rate 0 | Seller VAT ID or tax representative (BR-G-02). Reason VATEX-EU-G or "Export outside the EU" (BR-G-10). |
O | Not subject to VAT, no rate (BR-O-05) | Seller and buyer VAT IDs must not be present (BR-O-02), and no other category may appear on the invoice (BR-O-11). Reason VATEX-EU-O or "Not subject to VAT" (BR-O-10). |
Exemption reason codes come from the VATEX code list, which EN 16931 rule BR-CL-22 requires for BT-121 (VATEX code list). Besides the category codes above, it has codes for specific exemptions in the EU VAT Directive, such as VATEX-EU-132-1A, which you'd use with E.
AE or K? For a SaaS or service business, a sale to a business customer in another EU country is typically reverse charge (AE). K is for intra-community supplies of goods. Which category applies to a sale is a VAT question for you and your tax advisor; the rules only check that the invoice is consistent once you've decided.
German rules on top: BR-DE-16 and § 14a UStG
XRechnung adds BR-DE-16: if the invoice uses category S, Z, E, AE, K, G, L or M, at least one of BT-31, BT-32 or a seller tax representative (BG-11) must be present (KoSIT XRechnung schematron). A seller with only a Steuernummer can meet it with BT-32, but EN 16931's BR-CO-26 then still needs another seller identifier; Common XRechnung errors shows the XML.
German VAT law has its own requirements for reverse-charge invoices. For a service to a business in another EU member state where the customer owes the VAT, the invoice must say "Steuerschuldnerschaft des Leistungsempfängers" and show both your and the customer's VAT IDs; § 14a (5) has the same statement requirement for domestic reverse charge under § 13b UStG (§ 14a UStG). KoSIT and FeRD, who maintain XRechnung and ZUGFeRD, publish a table that maps each mandatory invoice detail under German VAT law to EN 16931 fields, and the BMF recommends following it (BMF letter of 15 October 2026, paragraphs 8 and 9). For both cases it says: the text "Steuerschuldnerschaft des Leistungsempfängers" goes in BT-120, the VAT exemption reason text. For the cross-border case it puts the two VAT IDs in BT-31 and BT-48; for domestic § 13b it maps the seller's tax number (BT-32), since the law asks for no VAT IDs there. EN 16931 still requires the buyer's VAT ID or legal registration ID on any reverse-charge invoice (BR-AE-02) (KoSIT/FeRD mapping table, version of 25 July 2025).
A cross-border invoice isn't covered by the German e-invoice mandate, which only applies when both businesses are established in Germany; sending one as an e-invoice needs the customer's consent (§ 14 (1) UStG). Domestic reverse-charge invoices under § 13b UStG between German businesses do fall under it. See Germany's e-invoicing mandate.
What evoicely does with them
evoicely converts finalized Stripe invoices and credit notes into ZUGFeRD (EN 16931) and XRechnung. For tax IDs and VAT categories it works like this:
- Your VAT ID (BT-31) comes from your evoicely settings, where it's required and checked for a country prefix, not from
account_tax_ids, which is often empty. A setup with only a Steuernummer (BT-32) isn't supported yet. - The buyer's VAT ID (BT-48) is the first
eu_vatentry in the invoice'scustomer_tax_ids. Other types, such asgb_vat,ch_vatorde_stn, aren't used. - The VAT category of each line comes from the line's tax entry:
- Stripe Tax
standard_ratedandreduced_ratedbecomeSwith the rate Stripe charged,reverse_chargebecomesAEat 0%, andzero_ratedbecomesZfor goods that stay in your country,Kfor goods to another EU country (the customer's EU VAT ID is required) andGfor goods leaving the EU, judged by the Stripe shipping address, else the billing address. - A manual tax rate above 0% becomes
S, provided the rate is VAT (itstax_typeisvator unset). - A line with no tax, a 0% manual rate, or Stripe Tax's
not_collectingbecomesAEifcustomer_tax_exemptisreverse. - Otherwise Stripe Tax's
not_collectingbecomesOwithVATEX-EU-Owhen an EU seller bills a customer outside the EU. That invoice carries no VAT IDs (BR-O-02); your VAT ID moves to the seller identifier BT-29, which EN 16931 still requires (BR-CO-26).
- Stripe Tax
- Anything else isn't guessed. Other Stripe tax reasons (such as
product_exempt,customer_exemptornot_subject_to_tax), non-VAT taxes and several taxes on one line stop the conversion with a message that says why. CategoryEisn't supported yet, norOother than from Stripe Tax'snot_collecting, norKorGother than from Stripe Tax'szero_rated. - The AE breakdown gets the exemption reason code
VATEX-EU-AEand the text "Steuerschuldnerschaft des Leistungsempfängers / Reverse charge": the German wording the KoSIT/FeRD table recommends for BT-120, followed by the English one. Either satisfies BR-AE-10. - Every file is checked with the official rules before it's issued, and a file that fails isn't issued. A reverse-charge invoice to a customer without an
eu_vattax ID in Stripe would fail BR-AE-02, so evoicely stops before converting it and tells you to add the VAT ID; add it to the customer before you finalize.
Reverse charge in XML
A fictional German seller invoices a monthly plan to a business customer in Austria. The Stripe customer has an eu_vat tax ID and tax_exempt: "reverse"; with Stripe Tax, the line's tax entry would instead read "amount": 0, "taxability_reason": "reverse_charge".
These excerpts were generated from that data by the same code evoicely uses. The complete UBL file passes the XRechnung 3.0 and EN 16931 rules, and the complete CII file passes the EN 16931 rules for ZUGFeRD; the <!-- --> comments were added for this page.
UBL (XRechnung)
<cac:AccountingSupplierParty>
<cac:Party>
...
<cac:PartyTaxScheme>
<cbc:CompanyID>DE123456789</cbc:CompanyID> <!-- BT-31 seller VAT ID -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
...
<cac:AccountingCustomerParty>
<cac:Party>
...
<cac:PartyTaxScheme>
<cbc:CompanyID>ATU12345678</cbc:CompanyID> <!-- BT-48 from customer_tax_ids -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
...
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount> <!-- BT-110 -->
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">490.00</cbc:TaxableAmount> <!-- BT-116 -->
<cbc:TaxAmount currencyID="EUR">0.00</cbc:TaxAmount> <!-- BT-117, 0 (BR-AE-09) -->
<cac:TaxCategory>
<cbc:ID>AE</cbc:ID> <!-- BT-118 -->
<cbc:Percent>0</cbc:Percent> <!-- BT-119 -->
<cbc:TaxExemptionReasonCode>VATEX-EU-AE</cbc:TaxExemptionReasonCode> <!-- BT-121 -->
<cbc:TaxExemptionReason>Steuerschuldnerschaft des Leistungsempfängers / Reverse charge</cbc:TaxExemptionReason> <!-- BT-120 -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
...
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="C62">1</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">490.00</cbc:LineExtensionAmount>
...
<cac:Item>
<cbc:Name>Pro plan (monthly)</cbc:Name>
<cac:ClassifiedTaxCategory>
<cbc:ID>AE</cbc:ID> <!-- BT-151 -->
<cbc:Percent>0</cbc:Percent> <!-- BT-152, 0 (BR-AE-05) -->
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">490</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
The exemption reason (BT-120/121) sits only in the breakdown; a line's ClassifiedTaxCategory has just the code and the rate.
CII (ZUGFeRD EN 16931)
<ram:SellerTradeParty>
...
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">DE123456789</ram:ID> <!-- BT-31 -->
</ram:SpecifiedTaxRegistration>
</ram:SellerTradeParty>
<ram:BuyerTradeParty>
...
<ram:SpecifiedTaxRegistration>
<ram:ID schemeID="VA">ATU12345678</ram:ID> <!-- BT-48 -->
</ram:SpecifiedTaxRegistration>
</ram:BuyerTradeParty>
...
<ram:ApplicableHeaderTradeSettlement>
...
<ram:ApplicableTradeTax> <!-- BG-23 -->
<ram:CalculatedAmount>0.00</ram:CalculatedAmount>
<ram:TypeCode>VAT</ram:TypeCode>
<ram:ExemptionReason>Steuerschuldnerschaft des Leistungsempfängers / Reverse charge</ram:ExemptionReason>
<ram:BasisAmount>490.00</ram:BasisAmount>
<ram:CategoryCode>AE</ram:CategoryCode>
<ram:ExemptionReasonCode>VATEX-EU-AE</ram:ExemptionReasonCode>
<ram:RateApplicablePercent>0</ram:RateApplicablePercent>
</ram:ApplicableTradeTax>
In CII the element order is fixed by the schema, which is why the reason text comes before the basis amount and the code after the category.
Remove ATU12345678 from either file and the validators report BR-AE-02.
Checklist
- Add your VAT ID (or Steuernummer) as an account tax ID in Stripe if you want it on Stripe's PDF, and keep it wherever your e-invoice generator reads it from.
- Add each business customer's VAT ID as an
eu_vattax ID before the invoice is finalized, and check itsverification.status. - Make the VAT treatment explicit: Stripe Tax with a registration for your home country, or
tax_exempt: "reverse"on customers where you've decided reverse charge applies. - Generate the e-invoice with
AE, rate 0,VATEX-EU-AEand a reason text, plus both VAT IDs. - Validate it. Our free validator runs the official EN 16931, XRechnung and Peppol rules.
Related guides
- Mapping a Stripe invoice to EN 16931, field by field: the other fields.
- Common XRechnung validation errors: BR-DE-16, BR-AE-02 and BR-AE-10 with fixes.
- Common Peppol BIS validation errors: the same VAT rules in a Peppol invoice.
- What is EN 16931?: the data model behind BT and BR codes.
- Stripe credit notes as e-invoices: reverse charge on refunds keeps the original's category.
- Stripe Tax and e-invoice VAT categories: which category each Stripe Tax taxability reason becomes.
Where evoicely fits
evoicely reads your Stripe invoices and credit notes, including tax IDs and reverse charge, and produces ZUGFeRD and XRechnung, each checked with the official validators. Get started, free for 10 e-invoices a month.
This is general information, not legal or tax advice. Check what applies to your business with your tax advisor.