How to set up the Lucanto plugin for WooCommerce

Upload the Lucanto for WooCommerce ZIP in WordPress, open WooCommerce → Settings → Integration → Lucanto, enter your Workspace ID and API token, and click "Verify connection". Then select your bank account, number series and PDF delivery channel, and enable automatic invoicing for new orders.

Works everywhere
Contents

Published

The official Lucanto plugin for WooCommerce connects your online store directly to Lucanto with no third-party bridge add-ons required. On each new order it can issue a pro forma or final invoice with automatic cross-border VAT classification, record confirmed Stripe payments, deduplicate guest contacts, and issue credit notes on refunds.

What you will need

  • WordPress 6.9+, WooCommerce 10.8+, and PHP 8.3+. For Stripe payment rules, WooCommerce 11.0+ and the official WooCommerce Stripe Payment Gateway are required.
  • A Lucanto Workspace with country and supplier VAT status configured (the PRO plan is recommended for full store automation and document email delivery).
  • The plugin installer ZIP. During pilot access, request the package via our contact form.
  • A host cron running wp cron event run --due-now so background queue operations execute reliably.

Install the plugin and verify the connection

  1. In WordPress, go to Plugins → Add New → Upload Plugin, select the lucanto-woocommerce ZIP archive, and activate it.
  2. Open WooCommerce → Settings → Integration → Lucanto.
After activation, the Connection card starts Unverified and automation remains disabled.
  1. Copy your Workspace ID (starting with ws_) from Lucanto and generate a Workspace API token using the WooCommerce preset. You can also supply the token outside the WordPress database via the LUCANTO_WC_API_TOKEN constant.
  2. Click Verify connection.
Once verified, the plan card shows your Workspace name, plan limits, supplier VAT status, and delivery options.

The Current plan card immediately confirms whether sending emails from Lucanto and attaching PDFs to WooCommerce emails are available on your plan.

Invoicing rules, bank account, and delivery

In the middle section you configure which payment methods trigger which documents and how PDFs reach customers.

Configure bank transfer pro formas, Stripe capture invoicing, and store-specific number series.
  • Bank transfer: creates a pro forma invoice when the order is placed. Lucanto monitors incoming transfers on the chosen bank account by variable symbol; once matched, you confirm the final invoice in Lucanto.
  • Stripe payment gateway: issues the final invoice after a confirmed Stripe capture and optionally records the settled payment in Lucanto against the invoice's bank account.
  • Document delivery and numbering: choose the delivery channel (Manual PDF, Email from Lucanto, or PDF in WooCommerce email) and number series separately for pro forma invoices, final invoices, and credit notes.
  • Credit notes on refunds: manual via the order panel button by default, with an optional automatic mode for full and itemized refunds (manual partial amount-only refunds without line items remain manual in Lucanto).
  • Automate invoicing for new orders: enable this checkbox only after verifying your connection, number series, and automatic delivery channel for bank transfers.

Billing fields, zero-total orders, and pausing writes

Automatic detection for checkout company fields and a safe pause switch for maintenance.
  • Company ID, Tax ID, and VAT ID fields: leave blank to detect WooCommerce Blocks Additional Checkout Fields and common meta keys automatically, or specify an exact field ID or order meta key.
  • Zero-total orders: decide whether 100% coupon or voucher orders are skipped without a document or flagged for review.
  • Processing: use Pause Lucanto writes and automatic delivery whenever restoring a backup or updating the plugin.

Tracking documents on orders and in diagnostics

The WooCommerce orders table gains a Documents column showing linked pro forma, final invoice, and credit note numbers alongside any uncovered refund alert.

Linked document numbers appear directly in the WooCommerce orders list.

Inside each order, the Lucanto documents panel on the right displays document and payment statuses, the variable symbol, amount due, and Open in Lucanto / Download PDF links.

A bank transfer order with an issued pro forma awaiting payment matching.
A Stripe order with the final invoice issued and payment recorded.

If an order needs attention — for instance, a business customer entered a company name without a registration ID — you can inspect the reason and request_id under WooCommerce → Lucanto (Diagnostics) and use Retry directly in the order panel once fixed.

Diagnostics tracks the operation queue, attempt counts, and actionable error codes.

Cross-border VAT, contact deduplication, and credit notes

  • Cross-border VAT: based on your Lucanto Workspace supplier VAT status (§4 VAT payer, §7/§7a, or non-VAT payer), billing/shipping countries, and customer VAT ID, the plugin automatically applies domestic VAT, EU B2B reverse charge (services Art. 44 / goods Art. 138), or non-EU export treatment. Foreign EU OSS rates or mixed physical-and-virtual cross-border orders are safely stopped in Diagnostics for manual review.
  • Private-customer contact deduplication: repeat purchases — including guest checkouts — reuse existing Lucanto private-person contacts by exact email, name, and billing address match while serializing concurrent orders so duplicate contacts are never created.
  • Credit notes on refunds: orders with an issued invoice show an Issue credit note button in the Lucanto documents panel for each eligible full or itemized refund (or issue automatically when enabled). The plugin supports multiple partial credit notes per order, inherits the buyer, VAT regime, and bank account from the original invoice, and checks Lucanto for existing credit notes to prevent duplicates.

Frequently asked questions

How do I get the plugin ZIP package?

The WooCommerce plugin is currently available in pilot access for initial online stores. Reach out via the contact form with your shop URL and WooCommerce version and we will send you the installer ZIP with its checksum.

Which permissions does the Workspace API token need?

The connection requires a Workspace token with permissions to read document settings and bank accounts, read the company profile, write contacts, and manage invoices, pro forma invoices, and credit notes. In Lucanto, pick the WooCommerce preset when generating the key; existing tokens without credit note scopes keep issuing invoices and pro formas uninterrupted.

Does the plugin support cross-border VAT and credit notes on refunds?

Yes. Using your Workspace VAT status in Lucanto, the plugin classifies domestic VAT, EU B2B reverse charge (services Art. 44 and goods Art. 138), and non-EU exports automatically while safely pausing foreign OSS rates for review. For full and itemized refunds, you can issue credit notes with one click in the order panel or automatically.

What happens if the network or API is temporarily unavailable?

The plugin stores operations in its own queue with a unique order operation ID and safe retries. When an outage resolves, pending operations resume automatically with backoff without issuing duplicate invoices.

Does the plugin support HPOS and WooCommerce block checkout?

Yes. The plugin declares compatibility with High-Performance Order Storage (HPOS) and the Cart and Checkout Blocks, and can detect company registration and VAT ID fields automatically.

How do I update the plugin safely?

Before uploading a new version, enable "Pause Lucanto writes and automatic delivery" under Processing, back up your database, upload the updated ZIP, check your rules, and unpause automation.

Unlock your financial superpowers

Start for free