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

# Listar productos y opciones agotados

> Lista los productos y opciones de modificador agotados en el local. Para reactivarlos, usa los endpoints out-of-stock del producto o de la opción con outOfStock false.



## OpenAPI

````yaml get /ecommerce/stores/{storeId}/out-of-stock
openapi: 3.1.0
info:
  title: Justo API
  version: 3.0.0
servers:
  - url: https://api.service.getjusto.com/v3
    description: Production server
security: []
paths:
  /ecommerce/stores/{storeId}/out-of-stock:
    get:
      summary: List out of stock items
      description: >-
        Lista los productos y opciones de modificador agotados en el local. Para
        reactivarlos, usa los endpoints out-of-stock del producto o de la opción
        con outOfStock false.
      parameters:
        - in: path
          name: storeId
          required: true
          schema:
            type: string
          description: ID Justo o ID externo del local.
      responses:
        '200':
          description: The OpenAPI spec
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/apiStoreOutOfStockItem'
        '400':
          description: Errors
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: 'false'
                  error:
                    type: object
                    properties:
                      error:
                        type: string
                        example: error
                      message:
                        type: string
                        example: The request has an error
components:
  schemas:
    apiStoreOutOfStockItem:
      type: object
      description: Producto u opción de modificador agotado en un local.
      properties:
        outOfStockItemId:
          type: string
          description: ID del registro de agotado.
        storeId:
          type: string
          description: ID Justo del local.
        itemType:
          type: string
          enum:
            - product
            - modifierOption
          description: Tipo de item agotado.
        productId:
          type: string
          description: ID Justo del producto, si es un producto.
        productExternalId:
          type: string
          description: ID externo del producto.
        modifierOptionId:
          type: string
          description: ID Justo de la opción de modificador, si es una opción.
        modifierOptionExternalId:
          type: string
          description: ID externo de la opción.
        name:
          type: string
          description: Nombre del producto o de la opción.
        until:
          type: string
          enum:
            - none
            - tomorrow
          description: >-
            none: agotado hasta que se reactive; tomorrow: hasta el día
            siguiente.
        untilDate:
          type: string
          format: date-time
          description: Fecha en que vuelve a estar disponible automáticamente, si existe.
        stock:
          type: number
          description: Stock configurado. Los agotados tienen 0 o vacío.
        createdAt:
          type: string
          format: date-time
          description: Fecha en que se agotó.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.