# Loyverse API Documentation

This is the complete API documentation for connecting to the Loyverse API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Loyverse connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/loyverse/actions/{actionSlug}/run
```

## Loyverse actions

- PUT `batch-update-inventory-levels` Batch Update Inventory Levels
- PUT `create-or-update-category` Create or Update Category
- PUT `create-or-update-customer` Create or Update Customer
- PUT `create-or-update-item` Create or Update Item
- PUT `create-or-update-supplier` Create or Update Supplier
- PUT `create-or-update-variant` Create or Update Variant
- POST `create-refund-receipt` Create Refund Receipt
- POST `create-sales-receipt` Create Sales Receipt
- DELETE `delete-category` Delete Category
- DELETE `delete-customer` Delete Customer
- DELETE `delete-item` Delete Item
- DELETE `delete-supplier` Delete Supplier
- DELETE `delete-variant` Delete Variant
- GET `get-category` Get Category
- GET `get-customer` Get Customer
- GET `get-item` Get Item
- GET `get-receipt` Get Receipt
- GET `get-shift` Get Shift
- GET `get-store` Get Store
- GET `get-supplier` Get Supplier
- GET `get-variant` Get Variant
- GET `list-categories` List Categories
- GET `list-customers` List Customers
- GET `list-inventory-levels` List Inventory Levels
- GET `list-items` List Items
- GET `list-receipts` List Receipts
- GET `list-shifts` List Shifts
- GET `list-stores` List Stores
- GET `list-suppliers` List Suppliers
- GET `list-variants` List Variants
