---
title: "Set modifier option out of stock"
method: POST
path: "/ecommerce/stores/{storeId}/modifier-options/{modifierOptionId}/out-of-stock"
---

# Set modifier option out of stock

`POST /ecommerce/stores/{storeId}/modifier-options/{modifierOptionId}/out-of-stock`

## Request

- Base URL: `https://api.service.getjusto.com/v3`
- URL: `https://api.service.getjusto.com/v3/ecommerce/stores/{storeId}/modifier-options/{modifierOptionId}/out-of-stock`
- Auth: none declared

## Path parameters

- `storeId` string, required
- `modifierOptionId` string, required

## Request body

- object
  - `outOfStock` boolean, required: Si es verdadero, marca la opción como agotada. Si es falso, la vuelve a dejar disponible.
  - `until` 'none' | 'tomorrow': Duración predefinida del bloqueo. none (por defecto) no tiene término, salvo que envíes untilDate. tomorrow lo mantiene hasta las 6:00 del día siguiente, hora del local, y reemplaza untilDate.
  - `untilDate` string, date-time: Fecha hasta la que la opción permanecerá agotada.
  - `stock` number: Stock disponible. Cuando se consume en pedidos, la opción queda agotada al llegar a 0.

## Response `200`

The OpenAPI spec

- object
  - `success` boolean
  - `data` ApiModifierOptionOutOfStock: Estado de disponibilidad de una opción de modificador en un local.
    - `storeId` string: ID Justo del local.
    - `modifierOptionId` string: ID Justo de la opción de modificador.
    - `modifierOptionExternalId` string: ID externo de la opción configurado por la marca.
    - `outOfStock` boolean: Indica si la opción quedó marcada como agotada en el local.
    - `outOfStockItemId` string: ID del registro de agotado creado por Justo.
    - `until` 'none' | 'tomorrow': Duración predefinida del bloqueo de stock.
    - `untilDate` string, date-time: Fecha hasta la que la opción permanecerá agotada.
    - `stock` number: Stock disponible configurado para la opción.

## Other responses

- `400`: Errors

## Changes

- **2026-10-31** `4ad06bd631ce`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getjusto/apis/justo-api/changes/ecommerce/stores/:storeId/modifier-options/:modifierOptionId/out-of-stock/post.md)

---

[API](https://skmtc.dev/getjusto/apis/justo-api.md) - [All operations](https://skmtc.dev/getjusto/apis/justo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getjusto/apis/justo-api/revisions/c810bd8246fd?raw)
