Skip to content

Loyalty programthat brings customers back

Customers collect points for purchases and exchange them for discounts or free gifts. You set the rules, rewards and tiers yourself in your admin.

Today

Sound familiar?

  • …customers buy once and never come back
  • …you want to reward your best customers but have no way to track it
  • …you track points in a spreadsheet or have no program at all

After the integration

With the integration

  • Points for purchasesEarned on paid orders at your rate. Returns and cancellations take them back.
  • Points for actionsSign-up, first order, birthday, newsletter sign-up.
  • Customer tiersThe more a customer spends, the faster they earn points.
admin.demo.bitshaft.pl/app/loyalty

Loyalty

Store features

Connected
  • Points for purchases

    → from the store

  • Customer tiers

    → from the store

  • Rewards at checkout

    ← into the store

  • Points history

    ← into the store

  • Points for paid orders
  • Bonus for the first order, sign-up, newsletter and birthday
  • Points taken back on returns and cancellations
  • Customer tiers with multipliers
  • Rewards: discount codes and free gifts

Illustrative view of the Medusa admin

What you get

  • Points for purchases

    Earned on paid orders at your rate. Returns and cancellations take them back.

  • Points for actions

    Sign-up, first order, birthday, newsletter sign-up.

  • Customer tiers

    The more a customer spends, the faster they earn points.

  • Rewards

    Discount codes or free products added to the cart.

  • Points expiry

    After a set time without purchases, and the store knows in advance whose points will expire.

  • Full history

    Every balance change recorded, corrections with a reason, CSV export.

Points never vanish or get counted twice: every balance change is a separate, unchangeable entry.

How we deploy it

  1. 01

    We agree the scope

    We pick the integrations and accounts we'll connect to your store.

  2. 02

    We test on your data

    Integrations run on a copy of your store with your products, with no risk to customers.

  3. 03

    We connect your accounts

    Courier, payments and emails switch to your accounts and settings.

  4. 04

    We launch sales

    We check the first real orders together with you.

What you need

Nothing extra.

Installation

  1. 1.Install the package
    npm install @bitshaft/medusa-plugin-loyalty
  2. 2.Add it to the Medusa config
    // medusa-config.ts
    export default defineConfig({
      plugins: [
        {
          resolve: "@bitshaft/medusa-plugin-loyalty",
          options: {
            // both optional; program rules are set in the admin
            timeZone: "Europe/Warsaw",
            defaultLocale: "pl",
          },
        },
      ],
    })
  3. 3.Run the database migrations
    npx medusa db:migrate

Done. The integration shows up in the admin menu.

Paste it into Claude Code, Cursor or another assistant in your Medusa project.

All integrations

15 minutes, free

Let's talk about your store