Marketplace

Allegro integration
for Medusa

An Allegro seller account connected to Medusa: offers linked to products by signature, orders imported exactly once, and stock, parcels, invoices and prices sent back to Allegro.

See it in the demo admin
Allegro: 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

  • Orders exactly once

    Every Allegro purchase becomes a Medusa order once, through Medusa's own flow: stock is reserved, tax comes from the region, and the payment is marked once Allegro holds the money.

  • Offers linked to products

    Offers link to variants by signature, the SKU that sellers and BaseLinker put in the offer. Never by offer name.

  • Stock that cannot hurt

    By default stock only goes down and sold out offers end. A plan that looks like a broken read, most variants suddenly at zero for instance, is refused as a whole.

  • Parcels and invoices

    Parcel number, carrier and seller status reach Allegro with every shipment, and invoices from the Fakturownia plugin attach to the order once.

  • Prices within bounds

    The Medusa price goes to Allegro only inside the bounds you set on the product. Anything outside waits for a decision.

  • Customer issues in view

    Returns, disputes, claims and unread messages in one place, with due dates and links to the seller panel. The plugin never answers for you.

How it guards
your data

  • Two switches per write

    Every writer is allowed in the options and armed separately in the admin. The admin shows who armed it and when.

  • Circuit breaker

    A writer that fails five times in a row disarms itself and leaves the reason in the admin. Failures of single offers do not count.

  • Sandbox and demo mode

    Test against the Allegro sandbox or a simulated account built from your catalog, no developer account needed.

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-allegro
  2. 2
    Add the plugin to medusa-config.ts.
                            plugins: [
      {
        resolve: "@koda-plus/medusa-plugin-allegro",
        options: {
          clientId: process.env.ALLEGRO_CLIENT_ID,
          clientSecret: process.env.ALLEGRO_CLIENT_SECRET,
          encryptionKey: process.env.ALLEGRO_ENCRYPTION_KEY,
          environment: "production", // or "sandbox"
          // writes: { orders: true, stock: true, shipping: true, invoices: true },
          // demo: true,
        },
      },
    ]
                          
  3. 3
    Run the migrations and open the integration in the Medusa admin.
    npx medusa db:migrate

Running for our clients

See our portfolio
  • outside Medusamessage center

Outside Medusa: the same logic and the same code in a project on another stack.

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