Loyverse Inventory API

Stock levels per variant and store.

GitHub OpenAPI
Business capability
Stock Level Management BC-530.10

Operations 2

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /inventory Get stock on hand per variant and store · Get inventory levels #
Ask an LLM
“How many units of each variant do I have in stock across stores?”
“Can I check stock levels for specific variants at one store?”
Tell an agent
Show inventory levels for variants {variant_ids}.
Get stock on hand for store {store_id}.
POST /inventory Set stock counts for variants at stores · Update inventory levels #
Ask an LLM
“How do I adjust the stock count for a variant at a store?”
“Can I update stock levels for several variant-store pairs at once?”
Tell an agent
Set inventory levels {inventory_levels}.
Update stock counts for these variant-store pairs: {inventory_levels}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/loyverse:loyverse-inventory-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

loyverse-inventory-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Loyverse Inventory API
  description: REST API for the Loyverse point of sale (POS) platform.
  version: '1.0'
  contact:
    name: Loyverse Developers
    url: https://developer.loyverse.com/docs/
  x-logo:
    url: https://loyverse.com
servers:
- url: https://api.loyverse.com/v1.0
  description: Loyverse API
security:
- bearerAuth: []
- oauth2:
  - ITEMS_READ
  - RECEIPTS_READ
  - CUSTOMERS_READ
  - INVENTORY_READ
  - STORES_READ
tags:
- name: Inventory
  description: Stock levels per variant and store.
paths:
  /inventory:
    get:
      operationId: getInventoryLevels
      tags:
      - Inventory
      summary: Get inventory levels
      description: Returns stock on hand per variant and store.
      parameters:
      - $ref: '#/components/parameters/Cursor'
      - $ref: '#/components/parameters/Limit'
      - name: store_id
        in: query
        schema:
          type: string
      - name: variant_ids
        in: query
        schema:
          type: string
        description: Comma-separated list of variant ids to filter by.
      responses:
        '200':
          description: A page of inventory levels.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InventoryPage'
        '401':
          $ref: '#/components/responses/Unauthorized'
    post:
      operationId: updateInventoryLevels
      tags:
      - Inventory
      summary: Update inventory levels
      description: Sets stock counts for one or more variant/store pairs.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                inventory_levels:
                  type: array
                  items:
                    $ref: '#/components/schemas/InventoryLevel'
      responses:
        '200':
          description: Updated inventory levels.
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  schemas:
    InventoryPage:
      allOf:
      - $ref: '#/components/schemas/Cursorable'
      - type: object
        properties:
          inventory_levels:
            type: array
            items:
              $ref: '#/components/schemas/InventoryLevel'
    Cursorable:
      type: object
      properties:
        cursor:
          type:
          - string
          - 'null'
          description: Cursor to pass to fetch the next page, or null on the last page.
    InventoryLevel:
      type: object
      properties:
        variant_id:
          type: string
        store_id:
          type: string
        in_stock:
          type: number
        updated_at:
          type: string
          format: date-time
  responses:
    Unauthorized:
      description: Missing or invalid access token.
  parameters:
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        default: 50
        maximum: 250
      description: Maximum number of records to return per page.
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
      description: Opaque cursor for the next page of results.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Personal access token generated in the Loyverse Back Office (Access Tokens).
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://api.loyverse.com/oauth/authorize
          tokenUrl: https://api.loyverse.com/oauth/token
          scopes:
            ITEMS_READ: Read items and catalog objects.
            ITEMS_WRITE: Create and update items and catalog objects.
            RECEIPTS_READ: Read receipts.
            RECEIPTS_WRITE: Create receipts.
            CUSTOMERS_READ: Read customers and loyalty data.
            CUSTOMERS_WRITE: Create and update customers.
            INVENTORY_READ: Read inventory levels.
            INVENTORY_WRITE: Update inventory levels.
            EMPLOYEES_READ: Read employees.
            PAYMENT_TYPES_READ: Read payment types.
            STORES_READ: Read stores.
            MERCHANT_READ: Read merchant and store information.