Invoicing

Fakturownia integration
for Medusa

VAT invoices, proformas, receipts and corrections in Fakturownia for Medusa orders, issued exactly once. Payment, KSeF number and PDF come back to the admin, and customers download their documents in the store.

See it in the demo admin
Fakturownia: The integration page in the Medusa admin, demo mode with sample data.
The integration page in the Medusa admin, demo mode with sample data.

What exactly
this integration does

  • A document at the right moment

    The invoice is issued when the payment is captured or when the order is placed. You can also issue a proforma first and the VAT invoice after shipping.

  • Receipts for consumers

    A buyer without a tax ID gets a receipt instead of an invoice, a company gets an invoice with the tax ID from the order.

  • Corrections with approval

    A return, refund, edit or cancellation after issue becomes a correction plan with the positions before and after. A person approves it, and the correction is issued once.

  • KSeF in detail

    KSeF number, status, errors, UPO and XML on every document, with a history and a resend.

  • E-mails and reminders

    The document with its PDF to the buyer, reminders about unpaid invoices and a monthly summary.

  • Documents in the customer account

    A logged-in customer downloads the invoices of their orders right in the store.

How it guards
your data

  • Zero duplicates

    One row per order and document kind, unique in the database. Before every issue the document is looked up in Fakturownia by the order number.

  • One shot, never blind

    The request that creates an invoice is never repeated. A lost answer means a lookup in Fakturownia, not a second invoice.

  • Nothing about the buyer in Medusa

    The plugin keeps the document kind, number, amounts and statuses. Buyer data is built from the order when it is sent, and addresses in the e-mail history are masked.

Setup
in three steps

The full list of options, events and API routes is in the package README on GitHub.

Paste it into Claude Code, Cursor or another AI assistant in your Medusa project: it installs and configures the integration, with writes off.

  1. 1
    Install the package from npm.
    npm install @koda-plus/medusa-plugin-fakturownia
  2. 2
    Add the plugin to medusa-config.ts.
                            plugins: [
      {
        resolve: "@koda-plus/medusa-plugin-fakturownia",
        options: {
          apiToken: process.env.FAKTUROWNIA_API_TOKEN,
          account: process.env.FAKTUROWNIA_ACCOUNT, // "mojafirma"
          issuePlace: "Warszawa",
          // documentFlow: "proforma_then_vat",
          // corrections: "plan",
        },
      },
    ]
                          
  3. 3
    Run the migrations and open the integration in the Medusa admin.
    npx medusa db:migrate

Running for our clients

See our portfolio
  • biolchecksoon
Free 15-minute call

Tell us about your project,
we'll tailor the rest to you

A 15-minute call is enough for us to know whether we are a fit for your project.
We start from what you need, not from an off-the-shelf solution.

See our demo

Contact us

Remigiusz in a navy shirt and glasses
I use iMessage I use WhatsApp
Adrian in a grey turtleneck and glasses
I use iMessage I use WhatsApp