Skip to main content
POST
/
ecommerce
/
stores
/
{storeId}
/
products
/
{productId}
/
out-of-stock
Set product out of stock
curl --request POST \
  --url https://api.service.getjusto.com/v3/ecommerce/stores/{storeId}/products/{productId}/out-of-stock \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "outOfStock": true,
  "untilDate": "2023-11-07T05:31:56Z",
  "stock": 123
}
'
{
  "success": true,
  "data": {
    "storeId": "<string>",
    "productId": "<string>",
    "productExternalId": "<string>",
    "outOfStock": true,
    "outOfStockItemId": "<string>",
    "untilDate": "2023-11-07T05:31:56Z",
    "stock": 123
  }
}

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.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

storeId
string
required

ID Justo o ID externo del local.

productId
string
required

ID Justo o ID externo del producto.

Body

application/json
outOfStock
boolean
required

Si es verdadero, marca el producto como agotado. Si es falso, lo vuelve a dejar disponible.

until
enum<string>

Duración predefinida del bloqueo. Usa tomorrow para agotarlo hasta el cierre del día siguiente.

Available options:
none,
tomorrow
untilDate
string<date-time>

Fecha hasta la que el producto permanecerá agotado.

stock
number

Stock disponible. Cuando se consume en pedidos, el producto queda agotado al llegar a 0.

Response

The OpenAPI spec

success
boolean
Example:

true

data
object

Estado de disponibilidad de un producto en un local.