MetorialDocs

Set up Loyverse in Metorial for Claude, ChatGPT and Cursor

Share Loyverse with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 36 tools (19 read-only).

To give your team Loyverse in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Loyverse integration in a Metorial portal, and each person signs in to Loyverse with their own account. Agents can manage a cloud-based point-of-sale system for retail stores, cafes, and restaurants. The integration has 36 tools, 19 read-only, 10 write and 7 destructive, plus 5 triggers.

What you'll learn

  • How an admin shares Loyverse in a portal and how each person connects
  • The 19 OAuth scopes Loyverse can request, and what each one allows
  • How to keep the 19 read-only tools and reject the other 17

Before you start

Sign-in methods

MethodTypeWhat a person provides
Personal Access TokenAPI tokentoken
OAuth (default)OAuthSigns in to Loyverse

The portal and metorial setup use OAuth unless someone picks another method.

Personal Access Token

To connect, a person enters:

  • token: Loyverse Personal Access Token created in the Back Office under Access Tokens

OAuth

People sign in to Loyverse and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
CUSTOMERS_READCustomers ReadRead customer records
CUSTOMERS_WRITECustomers WriteCreate, update, and delete customer records
EMPLOYEES_READEmployees ReadRead employee information
ITEMS_READItems ReadRead items, categories, modifiers, and variants
ITEMS_WRITEItems WriteCreate, update, and delete items, categories, modifiers, and variants
INVENTORY_READInventory ReadRead inventory levels
INVENTORY_WRITEInventory WriteUpdate inventory levels
MERCHANT_READMerchant ReadRead merchant account information
PAYMENT_TYPES_READPayment Types ReadRead payment type configurations
POS_DEVICES_READPOS Devices ReadRead POS device configurations
POS_DEVICES_WRITEPOS Devices WriteCreate, update, and delete POS devices
RECEIPTS_READReceipts ReadRead sales receipts
RECEIPTS_WRITEReceipts WriteCreate sales receipts and refunds
SHIFTS_READShifts ReadRead shift data
STORES_READStores ReadRead store information
SUPPLIERS_READSuppliers ReadRead supplier records
SUPPLIERS_WRITESuppliers WriteCreate, update, and delete supplier records
TAXES_READTaxes ReadRead tax configurations
TAXES_WRITETaxes WriteCreate, update, and delete tax configurations

Use your own Loyverse OAuth app

With your own OAuth app, people see your company's name on the Loyverse consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Loyverse and copy the Redirect URI.

Register the app with Loyverse

Create an OAuth app or client in Loyverse and add the redirect URI from Metorial as its redirect or callback URL.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Loyverse integration.

Admin: share Loyverse in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Loyverse. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Loyverse as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Loyverse.

Choose who gets it

Add the access groups that should see Loyverse. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Loyverse integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search loyverse

Employee: connect Loyverse

In the portal

Open Loyverse in the catalog

Sign in to your portal and open Loyverse. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Loyverse sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search loyverse
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Personal Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Loyverse connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list loyverse
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 19 read-only tools, such as get_item and list_items, and lose the 10 write tools, such as create_refund or create_receipt, and the 7 destructive tools, such as delete_tax or delete_item.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list loyverse
metorial tools <integration-id>
metorial call <integration-id> get_merchant -d '{}'

metorial tools lists the 36 tools, minus any you rejected. get_merchant takes no input. It retrieves account-level merchant information for the connected Loyverse account, including business name, email, country, and currency.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (19)

  • list_discounts: Retrieve discount configurations.
  • get_receipt: Retrieve a single sales or refund receipt by its receipt number, including full line items (with line item IDs needed for refunds), payment details, taxes, discounts, and modifiers. Needs receiptNumber.
  • list_shifts: Retrieve closed cash register shifts, newest first, including open/close times, cash drawer totals, sales totals, and the employees who opened and closed them.
  • list_payment_types: Retrieve all configured payment types (e.g., cash, card, custom).
  • list_categories: Retrieve item categories.
  • list_modifiers: Retrieve item modifiers (e.g., "Size" with options Small/Medium/Large).
  • list_employees: Retrieve employee records.
  • get_item: Retrieve a single item (product) by its ID, including full variant details, pricing, and configuration. Needs itemId.
  • list_stores: Retrieve all store locations.
  • list_items: Retrieve items (products) from the Loyverse catalog, newest first.
  • list_customers: Retrieve customer records from Loyverse, newest first.
  • list_taxes: Retrieve tax configurations.
  • list_suppliers: Retrieve supplier records used for inventory sourcing.
  • get_merchant: Retrieve account-level merchant information for the connected Loyverse account, including business name, email, country, and currency.
  • get_inventory: Retrieve inventory (stock) levels for item variants across store locations.
  • list_receipts: Retrieve sales and refund receipts (transactions) from Loyverse, newest first.
  • list_variants: Retrieve item variants (the sellable units of items, each with its own SKU, barcode, and price).
  • get_customer: Retrieve a single customer by ID, including contact details, visit history, total spent, and loyalty points balance.
  • list_pos_devices: Retrieve POS devices and their store assignments and activation status.

Write tools (10)

  • create_refund: Create a refund receipt for line items of an existing sales receipt. Needs receiptNumber and lineItems.
  • create_or_update_tax: Create a new tax rate or update an existing one.
  • create_receipt: Create a new sales receipt (transaction) in a store. Needs storeId, lineItems and payment.
  • create_or_update_supplier: Create a new supplier or update an existing one.
  • update_inventory: Set the stock level of item variants at store locations. Needs inventoryLevels.
  • create_or_update_customer: Create a new customer or update an existing one.
  • create_or_update_category: Create a new category or update an existing one.
  • create_or_update_item: Create a new item (product) or update an existing one in the catalog.
  • create_or_update_discount: Create a new discount or update an existing one.
  • create_or_update_modifier: Create a new modifier or update an existing one.

Destructive tools (7)

  • delete_discount: Delete a discount by its ID. Needs discountId.
  • delete_tax: Delete a tax configuration by its ID. Needs taxId.
  • delete_item: Delete an item (product) from the catalog by its ID. Needs itemId.
  • delete_category: Delete a category by its ID. Needs categoryId.
  • delete_supplier: Delete a supplier record by its ID. Needs supplierId.
  • delete_customer: Delete a customer record by its ID. Needs customerId.
  • delete_modifier: Delete a modifier by its ID. Needs modifierId.

Triggers

Loyverse has 5 triggers, which fire on events in Loyverse:

  • shift_events: Triggers when a shift is created (closed and synced to the Back Office).
  • inventory_events: Triggers when inventory (stock) levels change.
  • item_events: Triggers when items (products) are created, updated, or deleted.
  • receipt_events: Triggers when a receipt (sale) is created or updated.
  • customer_events: Triggers when a customer record is created, updated, or deleted.

Next steps