> ## Documentation Index
> Fetch the complete documentation index at: https://developer.clopos.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Operation Item Totals

> Aggregate quantity and cost for the current filters. Sending with[]=group_by_storage_id returns one row per storage instead.



## OpenAPI

````yaml /api-reference/v2/openapi.json get /operation-items/total
openapi: 3.1.0
info:
  title: Clopos Open API v2
  description: >-
    The **Clopos Open API v2** provides secure and unified access to the Clopos
    ecosystem, enabling seamless integration of POS, ordering, payments, and
    restaurant management services.
  contact:
    email: dev@clopos.com
  version: 2.0.0
  license:
    name: ''
servers:
  - url: https://integrations.clopos.com/open-api/v2
    description: '**Base Url**'
security:
  - xToken: []
tags:
  - name: Authentication
  - name: Venues
  - name: Users
  - name: Customers
  - name: Menu
  - name: Stations
  - name: Products
  - name: Price Lists
  - name: Sales
  - name: Orders
  - name: Receipts
  - name: Inventory
  - name: Finance
paths:
  /operation-items/total:
    get:
      tags:
        - Inventory
      summary: Operation Item Totals
      description: >-
        Aggregate quantity and cost for the current filters. Sending
        with[]=group_by_storage_id returns one row per storage instead.
      responses:
        '200':
          description: Request completed successfully.
          content:
            application/json:
              schema:
                oneOf:
                  - $ref: '#/components/schemas/OperationItemTotalResponse'
                  - $ref: '#/components/schemas/OperationItemTotalByStorageResponse'
components:
  schemas:
    OperationItemTotalResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: object
          properties:
            total_cost:
              type: number
    OperationItemTotalByStorageResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        data:
          type: array
          items:
            type: object
            properties:
              storage_id:
                type: integer
              storage_name:
                type: string
                nullable: true
              total_cost:
                type: number
          description: Returned when with[]=group_by_storage_id is sent.
  securitySchemes:
    xToken:
      type: apiKey
      in: header
      name: x-token
      description: JWT access token obtained from /v2/auth endpoint

````