<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Severin Komander</title>
    <description>The latest articles on DEV Community by Severin Komander (@severin_komander_0b8b9737).</description>
    <link>https://dev.to/severin_komander_0b8b9737</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3910139%2F5c9e45ab-84bd-4fb5-930b-b98f11faa405.jpg</url>
      <title>DEV Community: Severin Komander</title>
      <link>https://dev.to/severin_komander_0b8b9737</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/severin_komander_0b8b9737"/>
    <language>en</language>
    <item>
      <title>How I built a Lexware Office integration for Medusa v2</title>
      <dc:creator>Severin Komander</dc:creator>
      <pubDate>Sun, 03 May 2026 10:05:56 +0000</pubDate>
      <link>https://dev.to/severin_komander_0b8b9737/how-i-built-a-lexware-office-integration-for-medusa-v2-1koc</link>
      <guid>https://dev.to/severin_komander_0b8b9737/how-i-built-a-lexware-office-integration-for-medusa-v2-1koc</guid>
      <description>&lt;p&gt;I run a flower shop in Munich and recently migrated my entire e-commerce setup to Medusa v2. The shop, the&lt;br&gt;
  subscription service, the dashboard - everything runs on Medusa now.&lt;/p&gt;

&lt;p&gt;One thing that was completely missing: a connection to Lexware Office, which is the most popular accounting software&lt;br&gt;
  for small businesses in Germany. Every order meant manually creating an invoice. With 5-10 orders a day, that gets old&lt;br&gt;
   fast.&lt;/p&gt;

&lt;p&gt;So I built LexBridge - an open-source Medusa v2 plugin that automates the entire invoicing workflow.&lt;/p&gt;

&lt;p&gt;What it does&lt;/p&gt;

&lt;p&gt;When a customer places an order, the plugin:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Looks up the customer in Lexware (or creates a new contact)&lt;/li&gt;
&lt;li&gt;Creates an invoice with all line items, tax rates, and payment terms&lt;/li&gt;
&lt;li&gt;Downloads the finalized PDF from Lexware&lt;/li&gt;
&lt;li&gt;Stores the invoice reference in the database&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything is configurable through the Medusa Admin UI - no code changes needed after installation.&lt;/p&gt;

&lt;p&gt;The tricky parts&lt;/p&gt;

&lt;p&gt;German tax rates - Germany has 7% for food/flowers and 19% for everything else. A single order can contain items with&lt;br&gt;
  different tax rates. The plugin supports a taxRateOverride callback so you can define your own logic per line item.&lt;/p&gt;

&lt;p&gt;Payment terms per payment method - A customer paying with PayPal should get "due immediately", while a B2B customer&lt;br&gt;
  paying on invoice gets "14 days". The plugin lets you configure this per payment provider.&lt;/p&gt;

&lt;p&gt;Lexware API quirks - The API has a rate limit of 2 requests per second and returns 503 errors more often than you'd&lt;br&gt;
  like. The plugin handles this with exponential backoff and automatic retries.&lt;/p&gt;

&lt;p&gt;Idempotency - Medusa can fire order.placed events multiple times. A unique constraint on order_id ensures only one&lt;br&gt;
  invoice is created per order.&lt;/p&gt;

&lt;p&gt;Free and Pro&lt;/p&gt;

&lt;p&gt;The core features are completely free and open-source (MIT license). I added a Pro tier for advanced features like&lt;br&gt;
  credit notes, dry-run mode, webhook sync, and email notifications. It's a small way to fund ongoing development while&lt;br&gt;
  keeping the essential functionality free for everyone.&lt;/p&gt;

&lt;p&gt;Tech stack&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Medusa v2 module with custom service, subscribers, and admin UI&lt;/li&gt;
&lt;li&gt;TypeScript end to end&lt;/li&gt;
&lt;li&gt;AES-256-GCM encryption for API keys stored in the database&lt;/li&gt;
&lt;li&gt;Nodemailer for SMTP email delivery&lt;/li&gt;
&lt;li&gt;Admin UI built with Medusa's native UI components&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Try it&lt;/p&gt;

&lt;p&gt;npm install medusa-lexbridge&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://github.com/Severin2k/medusa-plugin-lexware" rel="noopener noreferrer"&gt;https://github.com/Severin2k/medusa-plugin-lexware&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://lexbridge.shop" rel="noopener noreferrer"&gt;https://lexbridge.shop&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://www.npmjs.com/package/medusa-lexbridge" rel="noopener noreferrer"&gt;https://www.npmjs.com/package/medusa-lexbridge&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you're running a Medusa shop in Germany/DACH and dealing with Lexware, this might save you a lot of manual work.&lt;br&gt;
  Feedback and contributions are welcome!&lt;/p&gt;

</description>
      <category>medusa</category>
      <category>ecommerce</category>
      <category>node</category>
      <category>opensource</category>
    </item>
  </channel>
</rss>
