NewProvince is only required for addresses in Spain
BeeL
Get startedMulti-NIFVeriFactuRulesStripeAPI referenceChangelog

Export lines take regime 02 on their own

A VAT line exempt under art. 21 or 22 that arrives with regime_key: "01" is stored with "02", instead of being refused by AEAT after issue.


ChangelogFixed

An export — Canarias, Ceuta, Melilla or outside the EU — is a line with exemption_reason EXENTA_ART_21 or EXENTA_ART_22. AEAT only accepts it under regime 02, but 01 is the default, so an export sent the obvious way was issued, numbered, and then refused by AEAT.

The line is now stored with regime 02 whenever it arrives with 01. This applies to invoices, recurring templates and every write path, including issuing.

What else changed

  • Expect regime_key: "02" back on those lines, even if you sent "01" or left it to the default.
  • EXENTA_ART_22 is now accepted with regime 02, alongside EXENTA_ART_21.
  • From 17 to 21 September these lines were rejected with EXEMPTION_INCOMPATIBLE_WITH_REGIME instead of corrected. If you got that code in those days, send the invoice again unchanged. The code stays in the catalogue, but a VAT export line no longer reaches it.

Where to go next