---
title: "Consultar movimientos de inventario"
method: GET
path: "/inventory"
tags: ["Inventario"]
---

# Consultar movimientos de inventario

`GET /inventory`

## Request

- Base URL: `https://api.pirpos.com`
- URL: `https://api.pirpos.com/inventory`
- Auth: HTTP bearer

Consulta los movimientos de inventario del negocio con filtros y paginación.

**Autenticación requerida:** Bearer Token.

## Query parameters

- `pagination` boolean
- `limit` integer
- `page` integer
- `provider` string
- `inventoryTypeId` number
- `inventoryNumber` string
- `purchaseStatus` boolean

## Response `200`

Lista de movimientos

- union
  - Inventory[]
    - `_id` string: ID del movimiento
    - `business` string: ID del negocio
    - `user` string: ID del usuario
    - `date` string, date-time: Fecha del movimiento
    - `type` number: Tipo de movimiento (1-11)
    - `provider` string: ID del proveedor
    - `isSubtracted` boolean: Si resta inventario
    - `isProduction` boolean: Si es producción
    - `isMoveTo` boolean: Si es traslado entre ubicaciones
    - `invoice` object: Información de factura
      - `invoiceNumber` string
      - `isPaid` boolean
      - `total` number
      - `totalPaid` number
      - `subtractCashRegister` boolean
    - `note` string: Nota del movimiento
    - `ingredients` object[]: Detalle de ingredientes/insumos
      - `ingredient` string: ID del producto/ingrediente
      - `quantity` number: Cantidad
      - `price` number: Precio unitario
      - `locationStock` string: ID ubicación origen
      - `locationStockTo` string: ID ubicación destino
      - `note` string: Nota por ingrediente
    - `locationStockTo` string: Ubicación destino (si aplica)
    - `deleted` boolean: Si está eliminado
    - `typeName` string: Nombre del tipo (virtual)
    - `total` number: Total del movimiento (virtual)
    - `modifiedOn` string, date-time: Fecha de última modificación
    - `createdOn` string, date-time: Fecha de creación
  - object
    - `data` Inventory[]
      - `_id` string: ID del movimiento
      - `business` string: ID del negocio
      - `user` string: ID del usuario
      - `date` string, date-time: Fecha del movimiento
      - `type` number: Tipo de movimiento (1-11)
      - `provider` string: ID del proveedor
      - `isSubtracted` boolean: Si resta inventario
      - `isProduction` boolean: Si es producción
      - `isMoveTo` boolean: Si es traslado entre ubicaciones
      - `invoice` object: Información de factura
        - `invoiceNumber` string
        - `isPaid` boolean
        - `total` number
        - `totalPaid` number
        - `subtractCashRegister` boolean
      - `note` string: Nota del movimiento
      - `ingredients` object[]: Detalle de ingredientes/insumos
        - `ingredient` string: ID del producto/ingrediente
        - `quantity` number: Cantidad
        - `price` number: Precio unitario
        - `locationStock` string: ID ubicación origen
        - `locationStockTo` string: ID ubicación destino
        - `note` string: Nota por ingrediente
      - `locationStockTo` string: Ubicación destino (si aplica)
      - `deleted` boolean: Si está eliminado
      - `typeName` string: Nombre del tipo (virtual)
      - `total` number: Total del movimiento (virtual)
      - `modifiedOn` string, date-time: Fecha de última modificación
      - `createdOn` string, date-time: Fecha de creación
    - `count` integer

## Other responses

- `401`: No autorizado
- `500`: Error interno del servidor

---

[API](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar.md) - [All operations](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar/llms.txt) - [OpenAPI document](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar/revisions/9d4431a3cddc?raw)
