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

# Low Stock Report

> Variants at or below the stock threshold (R13).

Only tracked inventory counts (track_inventory = True, active variant
and product). `format=csv` streams the FULL filtered set — the export
ignores pagination on purpose, that's what operators expect from a
reorder list.



## OpenAPI

````yaml https://api.vellaro.io/openapi.json get /api/v1/admin/analytics/low-stock
openapi: 3.1.0
info:
  title: Vellaro API
  description: Vellaro 2026 — E-commerce API
  version: 0.1.0
servers:
  - url: https://api.vellaro.io
    description: Produzione
security: []
tags: []
paths:
  /api/v1/admin/analytics/low-stock:
    get:
      tags:
        - admin
      summary: Low Stock Report
      description: |-
        Variants at or below the stock threshold (R13).

        Only tracked inventory counts (track_inventory = True, active variant
        and product). `format=csv` streams the FULL filtered set — the export
        ignores pagination on purpose, that's what operators expect from a
        reorder list.
      operationId: low_stock_report_api_v1_admin_analytics_low_stock_get
      parameters:
        - name: threshold
          in: query
          required: false
          schema:
            type: integer
            maximum: 100000
            minimum: 0
            default: 5
            title: Threshold
        - name: sort
          in: query
          required: false
          schema:
            type: string
            pattern: ^(stock|sku|product|price)$
            default: stock
            title: Sort
        - name: direction
          in: query
          required: false
          schema:
            type: string
            pattern: ^(asc|desc)$
            default: asc
            title: Direction
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
            title: Page
        - name: page_size
          in: query
          required: false
          schema:
            type: integer
            maximum: 500
            minimum: 1
            default: 50
            title: Page Size
        - name: format
          in: query
          required: false
          schema:
            type: string
            pattern: ^(json|csv)$
            default: json
            title: Format
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````