MedusaPOS

Quick start

Install the plugin, configure your Medusa store, and make your first sale.

Install the plugin and Configure your store are a one-time job for whoever runs your Medusa backend. After that, you and your staff start at Sign in, then At the till and Registers.

To look around first, open the live demo: it resets every night.

What you need

  • A store on Medusa 2.21.0 exactly (why this version) and access to its configuration. To check, run npm ls @medusajs/medusa in your backend's directory. To move up from an older version, follow Medusa's Updating Medusa guide. A store already on a newer version can't use plugin 0.2.3. To ask for support for your version, send feedback. Meanwhile, the live demo shows the till without a store of your own.
  • An admin user's email and password, without multi-factor authentication (MFA).
  • An HTTPS backend URL. For local testing, http://localhost:9000 or http://127.0.0.1:9000 also works; use your store's port. Chrome then asks to let the POS access devices on your local network: choose Allow, or sign-in reports that it could not reach the backend. An HTTPS POS cannot connect to a plain-HTTP backend on another machine.
  • The hosted app, https://app.medusapos.com, in a current Chrome, Edge, Safari or Firefox, over HTTPS or on localhost. MedusaPOS keeps sales and the catalogue in the browser's own private storage; exactly one tab per store stays live at a time — see Troubleshooting for what a second tab does.

Install the plugin

In your Medusa store's directory, run:

npm install @medusapos/medusa-plugin@0.2.3

Release 0.2.0 shipped with version 0.2.3 of the Medusa plugin, so the command names 0.2.3. The hosted app at https://app.medusapos.com runs the app's latest build, the same as the live demo, and works with plugin 0.2.3.

Add this entry to the plugins list in medusa-config.ts, keeping any existing plugins:

plugins: [{ resolve: '@medusapos/medusa-plugin', options: {} }]

You can set these optional IDs inside options:

  • salesChannelId: the sales channel for POS orders; otherwise the store's default sales channel is used.
  • locationId: the stock location for POS orders; otherwise the channel's first linked stock location is used.
  • shippingOptionId: the shipping option for POS orders; otherwise the location's earliest shipping option on the sale's products' shipping profile is used.

If you run more than one Medusa instance, set up a shared locking provider first, as in Plugin setup.

Then apply the plugin's database migrations and restart your Medusa backend:

npx medusa db:migrate

Configure your store

1. Allow the POS origin

Add the POS origin https://app.medusapos.com to both ADMIN_CORS and AUTH_CORS in your backend's environment (usually its .env file), after the origins already there and separated by a comma. Write it exactly like that, without a path or trailing slash, then restart the backend:

ADMIN_CORS=<your existing origins>,https://app.medusapos.com
AUTH_CORS=<your existing origins>,https://app.medusapos.com

2. One stock location

Make sure the default sales channel has a stock location with an address. Tax follows that address. If you set salesChannelId or locationId, configure the selected channel and location instead. Link only that one stock location to the channel (why one location). In the Medusa admin, go to Settings → Locations & Shipping, open the location, and edit its Sales Channels section.

3. A shipping option

Create a shipping option at that location, such as in-store pickup, on the shipping profile your products use, or set the plugin's shippingOptionId to the option you want to use. On the location's page:

  1. Enable Pickup (or Shipping).
  2. Add a service zone, the area the option serves: in that section's three-dot menu choose Create service zone, enter a Name, click Manage areas, check your shop's country and save.
  3. Click Create option and choose the profile in the Shipping Profile field.

4. A region, prices and tax

Make sure a region covers the location's country, in the currency you sell in:

  1. In the Medusa admin, go to Settings → Regions; if no region lists that country, click Create, choose the Currency and add the country under Countries.
  2. Prices at the till come from that region, so give each product you'll sell in person a price in its currency.
  3. Tax is set up separately: go to Settings → Tax Regions and create a region for that country. Prices include or exclude tax according to your currency's price preference in Medusa.

5. A publishable API key

Create (or reuse) a publishable API key linked to your sales channel: in the Medusa admin, go to Settings → Publishable API Keys, then add your sales channel under that key's Sales channels tab. MedusaPOS needs this to price your catalogue and to see what the channel sells — see Set up this till for the till's region and channel choice on first sign-in. The till shows only the products in that sales channel, so add the products you'll sell in person to it.

6. Admin and staff logins

If you do not have an admin user without MFA, create one from your store's backend directory, replacing the email and password below with your own:

npx medusa user -e you@example.com -p '<a strong password>'

The POS signs in with that email and password.

Give each member of staff their own login: in Medusa Admin, go to Settings → Users, click Invite, enter their email and click Send invite. If your store doesn't send the invite email, find them under Pending Invites, choose Copy invite link from the invite's menu and send them the link to sign up.

Choose who may use the POS

This is optional: if every admin user may use the till, skip to Sign in. With Medusa's role-based access control (RBAC) off, which is Medusa's default, every admin user can sign in to the POS. To limit it to the people you choose, on Medusa 2.21.0:

  1. Turn RBAC on. Both of these are needed: set MEDUSA_FF_RBAC=true in your backend's environment, and add the RBAC module to modules in medusa-config.ts:

    modules: [{ resolve: '@medusajs/medusa/rbac' }],

    Then run npx medusa db:migrate and restart the backend.

  2. Create the POS roles from your backend directory:

    npx medusa exec ./node_modules/@medusapos/medusa-plugin/.medusa/server/src/scripts/tally-pos-roles.js

    If your project hoists packages to a workspace root, point at the plugin under that root's node_modules instead. The script creates "POS cashier" and "POS manager", and is safe to run again. A POS manager can do everything a POS cashier can.

  3. In Medusa Admin, give each person who uses the till one of those roles. Super admins keep their access, and npx medusa user makes a super admin while RBAC is on.

Anyone who is neither a super admin nor given a POS role sees "This account can't use the POS. Ask the store owner for POS access." at sign-in.

Sign in

Your backend URL is the address of your Medusa server, such as https://api.example.com. With Medusa's default settings, Medusa Admin opens at that address followed by /app; leave /app off.

Open https://app.medusapos.com. Enter your backend URL, admin email and password, then sign in. If your store has more than one region or publishable key, you're asked to choose them first — see Set up this till. Let the catalogue load while you are online before selling offline.

The MedusaPOS sign-in form: Backend URL filled in with https://api.example.com, empty Email and Password fields, the Sign in button and a Send feedback link

Make a sale

  1. Tap the register's state at the right of the header, or on a phone at the right end of the row under it (it reads Register until you choose one), then choose Register 1 and open it with the cash in the drawer (the float). You can browse and fill the cart before that. In the live demo, choose Demo register instead.

    The right end of the till header: Register › beside the signed-in cashier's initial and email

    The Open register panel: Cash in the drawer to start (€) with 100 typed in, above the Open register button

  2. Scan a barcode or search for a product, add items and check the quantities.

  3. Tap Checkout. The payment screen opens on Cash; tap Card terminal for a card sale.

    The payment screen: the €16.95 total, the Cash and Card terminal tiles, amount keys, and the Take €16.95 in Cash button above Complete sale

  4. For cash, key in the amount handed over or tap Exact, then tap Take. For a card sale, take the payment on your separate terminal, tap Take and enter the terminal's reference; the POS records that external payment.

  5. Tap Complete sale and view the receipt; print it if needed.

Take a sale has more on each step.

You can keep selling from the loaded catalogue if the connection drops. The sync bar shows sales waiting to sync and confirms when they have synced. Reconnect to send queued sales to Medusa.

Open Orders to review sales and their sync status. Needs attention means an order was rejected or has a warning, such as stock being short. Read the order's details: a warning can accompany a successfully synced sale, while a rejected order needs investigation.

Close the register

At the end of the day, count and close the register.

  1. Tap the register's state, as when you opened it, to open its panel, then tap Close register. On a phone, Close register is in the cart view.
  2. Tap the note and coin tiles, or type the cash in the drawer. The line under the amount shows what's expected and how far off you are.
  3. Tap Close register again. The closure is your Z report, with each tender's counted amount, expected amount and difference. Tap Print the Z report for a paper copy, then Done.

Known beta limits

MedusaPOS is in beta. Read Limitations before you take it to a real till.

Troubleshooting

If sign-in or your first sale fails, see Setup problems. For sync, offline selling and storage messages, see Troubleshooting.

Next steps