=== InvokeXML e-invoices for WooCommerce ===
Contributors: invokexml
Tags: e-invoice, peppol, xrechnung, invoicenow, dbnalliance
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 0.2.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create and validate a Peppol, XRechnung, Factur-X, US DBNAlliance, Singapore PINT-SG or Japan JP PINT e-invoice for a WooCommerce order.

== Description ==

This plugin adds an "E-invoice" box to the WooCommerce order screen. Click "Generate e-invoice" and the plugin builds the invoice from the order (lines, shipping, fees, VAT, buyer and your seller details) and sends it to the InvokeXML API, which returns a validated XML file (and a PDF for Factur-X). You can then download the files from the order.

* Profiles: Peppol BIS Billing 3.0 (UBL), XRechnung (CII) and Factur-X (PDF/A-3 with embedded CII), US DBNAlliance (UBL 2.3), Singapore InvoiceNow PINT-SG (UBL) and Japan JP PINT (UBL).
* Tax categories for the US, Singapore (SR, ZR, ES33, OS) and Japan (S, AA for the 8% reduced rate) are set automatically.
* Validation findings are shown on the order so you can fix missing data before you send the invoice.
* Works with both the HPOS and the legacy order storage.

**What it does not do:** this plugin does not send invoices over Peppol, DBNAlliance, InvoiceNow or any other network, or by email. You send the generated file yourself, for example through your accounting software or your own access point.

You need an InvokeXML account with a verified email address, two-factor authentication and an API key. The free plan includes 5 valid conversions per month; invalid conversions do not count.

== External services ==

This plugin connects to the InvokeXML API (https://www.invokexml.com/api/v1/convert) to create and validate e-invoices. It only does so when a shop manager clicks "Generate e-invoice" on an order.

Data sent for that order: your seller details from the plugin settings (name, address, VAT number, IBAN/BIC), the buyer's name, company, address, email, phone and VAT number, the order number and dates, the order lines, shipping, fees, taxes and totals, and your API key.

The service is provided by InvokeXML: terms of use https://www.invokexml.com/terms, privacy policy https://www.invokexml.com/privacy.

== Installation ==

1. Create an account at https://www.invokexml.com, verify your email, turn on two-factor authentication and create an API key under "API keys".
2. Upload the plugin zip under Plugins > Add New > Upload Plugin and activate it.
3. Go to WooCommerce > InvokeXML, paste the API key, choose a profile and fill in your seller details.
4. Open an order and click "Generate e-invoice".

== Frequently Asked Questions ==

= Does this send the invoice to my customer over Peppol, DBNAlliance or InvoiceNow? =

No. It creates and validates the file. Sending is up to you.

= Where is the buyer's VAT number taken from? =

From the order meta key you set in the plugin settings (for example the key used by your VAT-number plugin).

= What happens to failed conversions? =

They are shown on the order with the validation findings and do not count towards your monthly quota.

== Changelog ==

= 0.2.0 =
* Added US DBNAlliance, Singapore PINT-SG and Japan JP PINT formats.

= 0.1.0 =
* First release.
