Connect a till
Sign a till in to your store with a staff account or a device key.
Open your till
Open app.vendurepos.com. On Sign in to Vendure, choose Email and password or Device key. Use one browser tab per till: a second tab is told the till is open in another tab.
Enter your store details
Enter the store URL; a trailing /admin-api is accepted.
Enter the channel token. For staff sign-in it is optional: blank means the default channel.
For Barcode field (optional), enter the name of an existing single text
ProductVariant custom field, such as barcode, to use for scanning. Leave it blank to turn this off.
The barcode field is set when signing in; Settings shows the field you chose.
If your store has no such field, add one to ProductVariant in your Vendure config:
// vendure-config.ts
customFields: {
ProductVariant: [{ name: 'barcode', type: 'string', nullable: true }],
},Then run a database migration, which Vendure needs for any custom field change, and fill in each variant's barcode in the Vendure Dashboard.
Sign in with a staff account
Choose Email and password and sign in as a Vendure administrator whose role in the till's channel has
TallyPosSell (plugin 0.2.0+; or the broader CreateOrder), ReadCatalog, ReadSettings, ReadCustomer and
CreateCustomer. Also add ReadOrder, or the till sells but its order history is refused.
Give each cashier their own account
Each cashier signs in to the till with their own Vendure administrator account, and Hand over switches between them without closing the register.
- Use the
vendurepos-pos-tillrole that New POS till key creates (plugin 0.2.0+), or in the Vendure Dashboard create a role in the till's channel withTallyPosSell,ReadCatalog,ReadSettings,ReadCustomer,CreateCustomerandReadOrder. On plugin 0.3.0 thevendurepos-pos-tillrole has noReadOrder: add it yourself, or the till sells but its order history is refused. - Create one administrator per cashier, with only that role.
- Each cashier signs in with Email and password; the till names them by their email. At the end of a shift, Hand over signs them out and the next cashier signs in.
Create and use a device key
You need plugin 0.2.0 or later and Vendure's React Dashboard. See Plugin setup for installation.
-
Add
'api-key'toauthOptions.tokenMethod:TypeScript tokenMethod: ['bearer', 'cookie', 'api-key'], -
In the Dashboard, switch to the till's channel first. A key works only in the channel it was created in, and the dialog names that channel.
-
Go to Settings → API keys → New POS till key and name the key after the device. This creates or extends the
vendurepos-pos-tillrole withTallyPosSelland the reads a till needs, creates the key with that role and shows the key once. On plugin 0.3.0, addReadOrderto that role yourself for the till's order list, as in Give each cashier their own account. -
On the till, choose Device key, paste the key and the till's channel token, and sign in.
The till shows the key's name on receipts as Till: <name>.
Rotate or delete a key on its own page in the Dashboard.
Signing out forgets the key on that device; it does not revoke it.
A till whose key is revoked asks for a new one and keeps its cart.
Make the key button available in a pnpm project
With pnpm, the Dashboard looks for plugins inside node_modules/.pnpm and misses the button,
so point its Vite plugin at your project's own node_modules. Vendure's setup configures that plugin
in vite.config.mts, next to package.json:
// vite.config.mts
import { resolve } from 'path';
// ...your other imports
// inside plugins: [...]
vendureDashboardPlugin({
// ...your existing options
pluginPackageScanner: {
nodeModulesRoot: resolve(__dirname, 'node_modules'),
},
}),nodeModulesRoot is then the node_modules folder beside vite.config.mts.
Rebuild the Dashboard (npx vite build, or restart npx vite) and check that
Settings → API keys shows New POS till key. Tested with Vendure 3.7.3.
npm projects need nothing extra.
Fix a sign-in problem
See the quick start's troubleshooting steps and Troubleshooting.
Where your data goes
Stored in this browser
- When you sign in with email and password, the till sends them from this browser to the store URL you entered.
It then saves the session in this browser's
localStorage: the store URL, channel token, barcode field, your email, the store's settings and the session token the store returned. - It never saves the password.
- With a device key, it saves the key itself.
- The catalogue and the sales not yet sent to your store are kept in SQLite databases inside this browser. This is the till's own storage; your Vendure server's database is separate and must be Postgres.
What signing out deletes
- Signing out deletes that saved session and, for a password sign-in, asks the store to end the session.
- Signing out deletes the catalogue but never the sales database, so unsent sales wait for your next sign-in.
Where requests go
- Every request in the till's code goes to that store URL, except on the public demo at demo.vendurepos.com: it posts anonymous demo events to ph.wcpos.com with no cookie and nothing stored.
- The events are
demo_opened,demo_signed_in,demo_sale_completedanddemo_reset, each with a random id that lasts one page load and the demo's host name, plus the referring site ondemo_opened; ph.wcpos.com is a self-hosted PostHog analytics server, the same one this website's page-view counter reports to. - The page loads scripts only from its own host, cannot be shown inside another site, and may connect to any
https://address.
The till's source is MIT-licensed and builds to static files. Building it yourself needs your own RxDB Premium
licence token in RXDB_PREMIUM; then run pnpm build:web in apps/pos and serve apps/pos/dist from your own host.
Your store must then allow that origin in its CORS settings, the same way it allows https://app.vendurepos.com.