First-party app
Loyverse

Loyverse

Read and manage a Loyverse POS back office: items, categories, customers, receipts, inventory, stores, employees, discounts, taxes and payment types.

stable Commerce & Payments

About

Loyverse ships in the w6w first-party pack. It declares 21 actions, 2 health checks, and the host runs its code in a sandbox that never sees the credential.

App id
io.w6w.loyverse
Version
0.1.0
Author
w6w
Licence
MIT
Categories
Commerce & Payments

Overview

Loyverse is a free point-of-sale system for small retail and food-service businesses. This app connects a workflow to a merchant’s Loyverse back office so sales, stock and customers can flow into the rest of the stack.

Read receipts as they are rung up, pull items, categories, discounts, taxes and payment types for a catalogue sync, list stores, employees and shifts, and watch per-store stock levels. Write back customers, categories and inventory counts so an external system of record stays authoritative.

Connect with a personal access token for your own account, or with OAuth 2.0 to act for another merchant with only the scopes you request.

Build with Loyverse

Three routes to the same 21 actions. The Workflow tab is generated from Loyverse's own manifest and carries its real ids, so it is copy-pasteable; the Code and CLI examples are the same call for any action on any app, so every app-specific value in them is a blank you fill in.

Get Category

category-get

Get one category by id.

List Categories

category-list

List item categories, newest first.

Create or Update Category

category-save

Create a category, or update one when an id is given.

Get Customer

customer-get

Get one customer by id.

List Customers

customer-list

List customers, newest first.

Create or Update Customer

customer-save

Create a customer, or update one when an id is given.

List Discounts

discount-list

List discounts.

Get Employee

employee-get

Get one employee by id.

List Employees

employee-list

List the account's employees.

List Inventory Levels

inventory-list

List stock levels per item variant and store.

Update Inventory Levels

inventory-update

Set the absolute stock level of item variants in stores (batch).

Get Item

item-get

Get one item, with its variants, by id.

List Items

item-list

List items with their variants, newest first.

Get Merchant

merchant-get

Get the business name, email, country and currency of the connected account.

List Payment Types

payment-type-list

List payment types (cash, card, …).

Get Receipt

receipt-get

Get one receipt by its receipt number.

List Receipts

receipt-list

List sales and refund receipts, newest first.

List Shifts

shift-list

List cash-register shifts, newest first.

Get Store

store-get

Get one store by id.

List Stores

store-list

List the account's stores.

List Taxes

tax-list

List taxes.

A workflow step names the app and the action, and the editor fills in the connection when you pick one. This is the Step shape from the workflow spec, carrying Loyverse's real ids.

{
  "manifestVersion": "2",
  "name": "loyverse-example",
  "steps": [
    {
      "id": "category-get",
      "uses": {
        "app": "io.w6w.loyverse",
        "action": "category-get",
        "connection": "conn_YOUR_CONNECTION_ID"
      },
      "with": {
        "categoryId": "<categoryId>"
      }
    }
  ]
}

Here are some of the things you can do

  • Get Category

    read
    category-get
  • List Categories

    search
    category-list
  • Create or Update Category

    perform
    category-save
  • Get Customer

    read
    customer-get
  • List Customers

    search
    customer-list

+16 more actions available

Every app-specific value here is a blank you have to fill in. An app action is reached through the connection that authenticates it, so the address is a connection id, not the app id — and connections belong to your account, so a public page cannot know yours. Create one for Loyverse, then fill in the three blanks: conn_YOUR_CONNECTION_ID, the action key, and the parameters that action declares. The call itself is real — the shape is transcribed from the studio's own snippet builder, which prints the same kind of blanks — but nothing in it is specific to Loyverse. The Workflow tab is where this app's real ids are.

Install
npm install @w6w/sdk
yarn add @w6w/sdk
pnpm add @w6w/sdk
deno add npm:@w6w/sdk
Code
import { W6wClient, isActionRun } from "@w6w/sdk";

// Reads W6W_BASE_URL and W6W_TOKEN from the environment when omitted.
const client = new W6wClient();

const envelope = await client.run({
  urn: "conn_YOUR_CONNECTION_ID",
  action: "category-get",
  payload: {
    categoryId: "<value>",
  },
});

if (isActionRun(envelope)) console.log(envelope.value);
Install the CLI
npm install -g @w6w/cli
CLI
w6w run conn_YOUR_CONNECTION_ID --action category-get --payload '{"categoryId":"<value>"}'

Give an AI agent Loyverse — without giving it Loyverse's credentials. One MCP endpoint exposes every app, function and workflow the caller is entitled to, as tools it can discover and run. Access is granted per team while we onboard.

One tool call
{
  "name": "w6w_invoke",
  "arguments": {
    "ref": "app:io.w6w.loyverse#category-get",
    "input": {
      "categoryId": "<categoryId>"
    }
  }
}

Every tool names its target with a single ref. The app: form above doesn't name a connection at all — the host resolves which of the caller's Loyverse connections to sign with, and refuses rather than guesses when the answer is ambiguous.

What the agent gets

Credentials it can't read

The token is attached host-side, at the moment of the call. It is never a tool argument, never in the model's context, and never in a transcript — so a prompt injection has nothing to exfiltrate.

A tool surface scoped to the caller

Tools are derived per end user from what that person has actually connected and is entitled to — not one shared bot identity carrying the union of everyone's access.

A durable workflow in one call

Multi-step work runs on the workflow engine and returns a run handle the agent can poll — retries, branching and state survive the conversation that started them.

Health-aware discovery

Loyverse's declared health checks are on the surface too, so an agent can tell "the vendor is down" from "your credential expired" before it burns a retry on either.

The MCP surface is part of the hosted platform. Loyverse itself is MIT, and the runtime that executes it is source-available (FSL).

Request MCP access

Health checks

Loyverse declares its own checks, so its health is a property of the app rather than something the host guesses at.

service

Loyverse platform status

The `Loyverse API` component on Loyverse's Statuspage. POS app, Back Office, Billing and Website are reported as detail but never drive the verdict.

quota

Quota headroom