> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/ecommerce/loyverse.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Loyverse

Loyverse is a point-of-sale system for small retailers. Create and update items, categories, customers, discounts, suppliers and taxes.

![Loyverse logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-86dd1f90685cee3b219de7e176e486edba6ba0ea%2Floyverse.png?alt=media)

|                    |                                                                          |
| ------------------ | ------------------------------------------------------------------------ |
| **Category**       | [E-commerce](https://docs.fastn.ai/connectors/catalog/ecommerce.md)      |
| **Website**        | [loyverse.com](https://loyverse.com)                                     |
| **Authentication** | Access token                                                             |
| **Slug**           | `loyverse`                                                               |
| **On fastn.ai**    | [Embed Loyverse in your product](https://fastn.ai/integrations/loyverse) |

## Setup

Your customers enter their access token for Loyverse when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Loyverse from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Loyverse**.
2. Select **Connect** on the Loyverse card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Loyverse's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Or Update Category</td><td><code>createOrUpdateCategory</code></td><td>Creates an item category, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing category updates it, and omitting the identifier creates a new one.</td></tr><tr><td>Create Or Update Customer</td><td><code>createOrUpdateCustomer</code></td><td>Creates a customer in the loyalty database, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing customer updates it, and omitting the identifier creates a new one. Loyalty points, visit counts and total spend are maintained by Loyverse from receipts and cannot be written here.</td></tr><tr><td>Create Or Update Discount</td><td><code>createOrUpdateDiscount</code></td><td>Creates a discount, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing discount updates it, and omitting the identifier creates a new one. Supply the amount only for fixed-amount discounts and the percentage only for fixed-percent discounts; variable discounts take their value at the till.</td></tr><tr><td>Create Or Update Item</td><td><code>createOrUpdateItem</code></td><td>Creates an item in the product catalogue, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing item updates it, and omitting the identifier creates a new one. Creating an item without a variants list gives it one auto-generated variant with a sequential SKU. Note two Loyverse constraints: the option names cannot be added to or removed from an item that already has variants, and the request field is modifiers_ids while the response field is modifier_ids.</td></tr><tr><td>Create Or Update Modifier</td><td><code>createOrUpdateModifier</code></td><td>Creates a modifier with its options, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing modifier updates it, and omitting the identifier creates a new one. The options list replaces the modifier's existing options, so send the full set every time.</td></tr><tr><td>Create Or Update POS Device</td><td><code>createOrUpdatePosDevice</code></td><td>Registers a POS device against a store, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing device updates it, and omitting the identifier creates a new one. A newly created device is inactive until it is paired with a physical till in the Loyverse app.</td></tr><tr><td>Create Or Update Supplier</td><td><code>createOrUpdateSupplier</code></td><td>Creates a supplier, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing supplier updates it, and omitting the identifier creates a new one.</td></tr><tr><td>Create Or Update Tax</td><td><code>createOrUpdateTax</code></td><td>Creates a tax, or updates an existing one. This endpoint is an upsert: supplying the identifier of an existing tax updates it, and omitting the identifier creates a new one.</td></tr><tr><td>Create Or Update Variant</td><td><code>createOrUpdateVariant</code></td><td>Creates a variant on an existing item, or updates an existing variant. This endpoint is an upsert: supplying the identifier of an existing variant updates it, and omitting the identifier adds a new variant to the given item. Adding a variant requires the parent item to already define the matching option names.</td></tr><tr><td>Create Or Update Webhook</td><td><code>createOrUpdateWebhook</code></td><td>Subscribes a URL to a Loyverse event, or updates an existing subscription. This endpoint is an upsert: supplying the identifier of an existing webhook updates it, and omitting the identifier creates a new one. Loyverse then POSTs the event payload to your URL whenever that event occurs.</td></tr></tbody></table>

<details>

<summary>View 47 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Receipt</td><td><code>createReceipt</code></td><td>Records a completed sale in Loyverse, exactly as if it had been rung up on a till. This is a real financial transaction: it appears in sales reports, decrements tracked stock, awards loyalty points and cannot be deleted - only refunded. Use it to push sales in from another channel, never to test connectivity.</td></tr><tr><td>Create Refund</td><td><code>createRefund</code></td><td>Issues a refund against an existing sales receipt, returning money to the customer. This is a real financial transaction: it appears in sales reports, returns tracked stock and reverses loyalty points, and it cannot be undone. Refund only the lines you mean to, identified by their line item identifiers from the original receipt.</td></tr><tr><td>Delete Category</td><td><code>deleteCategory</code></td><td>Deletes an item category. Items already assigned to the category are left in place but lose their category.</td></tr><tr><td>Delete Customer</td><td><code>deleteCustomer</code></td><td>Deletes a customer from the loyalty database. Loyverse schedules the record for permanent deletion rather than removing it instantly, which is reflected in the customer's permanent deletion date.</td></tr><tr><td>Delete Discount</td><td><code>deleteDiscount</code></td><td>Deletes a discount so it can no longer be applied at the POS.</td></tr><tr><td>Delete Item</td><td><code>deleteItem</code></td><td>Deletes an item and all of its variants from the product catalogue. Receipts that already reference the item keep their historical record.</td></tr><tr><td>Delete Item Image</td><td><code>deleteItemImage</code></td><td>Removes the picture attached to an item, leaving the item itself in place.</td></tr><tr><td>Delete Modifier</td><td><code>deleteModifier</code></td><td>Deletes a modifier and all of its options, removing it from the items that used it.</td></tr><tr><td>Delete POS Device</td><td><code>deletePosDevice</code></td><td>Removes a POS device registration. The physical till is unpaired and can no longer take sales under this device.</td></tr><tr><td>Delete Supplier</td><td><code>deleteSupplier</code></td><td>Deletes a supplier from the merchant's supplier list.</td></tr><tr><td>Delete Tax</td><td><code>deleteTax</code></td><td>Deletes a tax. Items that referenced the tax stop having it applied at the till.</td></tr><tr><td>Delete Variant</td><td><code>deleteVariant</code></td><td>Deletes a single item variant. An item must keep at least one variant, so deleting its only variant is rejected - delete the item instead.</td></tr><tr><td>Delete Webhook</td><td><code>deleteWebhook</code></td><td>Removes a webhook subscription so Loyverse stops sending that event to the target URL.</td></tr><tr><td>Get Category</td><td><code>getCategory</code></td><td>Returns a single item category by its identifier.</td></tr><tr><td>Get Customer</td><td><code>getCustomer</code></td><td>Returns a single customer by their identifier, including loyalty points, total spend and visit history.</td></tr><tr><td>Get Discount</td><td><code>getDiscount</code></td><td>Returns a single discount by its identifier, with its type, value and store availability.</td></tr><tr><td>Get Employee</td><td><code>getEmployee</code></td><td>Returns a single employee by their identifier, with the stores they are assigned to.</td></tr><tr><td>Get Item</td><td><code>getItem</code></td><td>Returns a single item by its identifier, with all of its variants and their per-store pricing.</td></tr><tr><td>Get Merchant</td><td><code>getMerchant</code></td><td>Returns information about the Loyverse merchant account the access token belongs to, including the business name, contact email, country and the currency all money amounts in the API are expressed in.</td></tr><tr><td>Get Modifier</td><td><code>getModifier</code></td><td>Returns a single modifier by its identifier, including all of its options and their prices.</td></tr><tr><td>Get Payment Type</td><td><code>getPaymentType</code></td><td>Returns a single payment type by its identifier, including which stores accept it.</td></tr><tr><td>Get POS Device</td><td><code>getPosDevice</code></td><td>Returns a single POS device by its identifier, with its store and activation state.</td></tr><tr><td>Get Receipt</td><td><code>getReceipt</code></td><td>Returns a single receipt by its receipt number, with its line items, taxes, discounts and payments. Note that receipts are addressed by receipt number rather than by a UUID.</td></tr><tr><td>Get Shift</td><td><code>getShift</code></td><td>Returns a single till shift by its identifier, with its cash reconciliation figures and the cash movements recorded during it.</td></tr><tr><td>Get Store</td><td><code>getStore</code></td><td>Returns a single store by its identifier, with its address and contact details.</td></tr><tr><td>Get Supplier</td><td><code>getSupplier</code></td><td>Returns a single supplier by its identifier, with full contact and address details.</td></tr><tr><td>Get Tax</td><td><code>getTax</code></td><td>Returns a single tax by its identifier, with its rate and per-store settings.</td></tr><tr><td>Get Variant</td><td><code>getVariant</code></td><td>Returns a single item variant by its identifier, with its SKU, barcode, cost and per-store pricing.</td></tr><tr><td>Get Webhook</td><td><code>getWebhook</code></td><td>Returns a single webhook subscription by its identifier, showing its target URL, event type and whether it is currently enabled.</td></tr><tr><td>List Categories</td><td><code>listCategories</code></td><td>Returns the item categories defined for the merchant, each with its display colour.</td></tr><tr><td>List Customers</td><td><code>listCustomers</code></td><td>Returns the customers in the merchant's loyalty database, with their contact details, loyalty points and visit history.</td></tr><tr><td>List Discounts</td><td><code>listDiscounts</code></td><td>Returns the discounts configured for the merchant, with their type, value and which stores they are available in.</td></tr><tr><td>List Employees</td><td><code>listEmployees</code></td><td>Returns the employees of the merchant, with the stores they work at and their assigned POS access. Employee identifiers appear on receipts and shifts.</td></tr><tr><td>List Inventory Levels</td><td><code>listInventoryLevels</code></td><td>Returns current stock levels per item variant per store. Only variants belonging to items with stock tracking enabled appear here.</td></tr><tr><td>List Items</td><td><code>listItems</code></td><td>Returns the items in the product catalogue, each with its variants, taxes, modifiers and per-store pricing.</td></tr><tr><td>List Modifiers</td><td><code>listModifiers</code></td><td>Returns the modifiers defined for the merchant, each with its options. Modifiers are the add-ons and variations offered at the till, such as extra shot or choice of sauce.</td></tr><tr><td>List Payment Types</td><td><code>listPaymentTypes</code></td><td>Returns the payment types configured for the merchant, such as cash and card. Payment type identifiers are required when recording the payments on a sales receipt.</td></tr><tr><td>List POS Devices</td><td><code>listPosDevices</code></td><td>Returns the POS devices registered for the merchant, showing which store each is connected to and whether it has been activated against a physical till.</td></tr><tr><td>List Receipts</td><td><code>listReceipts</code></td><td>Returns sales and refund receipts, each with its line items, taxes, discounts and payments. This is the record of what was actually sold, and is the usual starting point for reporting or accounting syncs.</td></tr><tr><td>List Shifts</td><td><code>listShifts</code></td><td>Returns till shifts, each covering the period between a cash drawer being opened and closed, with the opening and closing amounts and the cash movements recorded during it.</td></tr><tr><td>List Stores</td><td><code>listStores</code></td><td>Returns the stores belonging to the merchant, with their addresses and contact details. Store identifiers are needed by most other resources, such as inventory, receipts and POS devices.</td></tr><tr><td>List Suppliers</td><td><code>listSuppliers</code></td><td>Returns the suppliers defined for the merchant, with their contact and address details. The list is sorted by creation time with the most recent suppliers first.</td></tr><tr><td>List Taxes</td><td><code>listTaxes</code></td><td>Returns the taxes configured for the merchant, with their rates, type and which stores they apply in.</td></tr><tr><td>List Variants</td><td><code>listVariants</code></td><td>Returns item variants across the catalogue, each with its SKU, barcode, cost and per-store pricing. Variants are the sellable units referenced by inventory levels and receipt line items.</td></tr><tr><td>List Webhooks</td><td><code>listWebhooks</code></td><td>Returns the webhooks registered for the merchant. Loyverse only returns webhooks created by the same application as the access token making the request, so this will not show subscriptions made by other integrations.</td></tr><tr><td>Update Inventory Levels</td><td><code>updateInventoryLevels</code></td><td>Sets the stock level for one or more item variants at a store. The value you supply is the resulting stock, not a delta, so read the current level first if you mean to adjust it. This writes directly to live inventory and immediately changes what the tills will sell.</td></tr><tr><td>Upload Item Image</td><td><code>uploadItemImage</code></td><td>Uploads a picture for an item, shown on its POS tile. Loyverse expects the raw PNG bytes as the request body. Note that Fastn's HTTP executor cannot currently send raw binary bodies without corrupting non-UTF-8 bytes, so this action is not usable for real image uploads from Fastn today - set the item's Image URL through Create Or Update Item instead, or upload the picture in the Loyverse Back Office.</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/ecommerce/loyverse.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
