# Stock por SKU

Este servicio deberá exponer el stock disponible para venta Web de una lista de artículos (SKUs), para su consulta en tiempo real.

<table><thead><tr><th width="116">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>GET</code></td><td><code>https://{ApiURL}/stockporsku</code></td></tr></tbody></table>

## Request

<table><thead><tr><th width="114.33333333333331">Clave</th><th width="104">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>skus</code></strong></td><td>List</td><td>Lista de SKUs de los cuales se requiere conocer el stock.</td></tr></tbody></table>

## Ejemplo

```json
{
  "_idSolicitud": "200325120000-FNSHPUY-3c7621ed5a707177c1421cce79338668",
  "skus": [
    "548972-002-01",
    "548972-002-03"
  ]
}
```

## Response

La respuesta deberá incluir en la clave "stockPorSku" una lista de objetos por cada SKU requerido, cada uno con los siguientes datos:

<table><thead><tr><th width="117.33333333333331">Clave</th><th width="118">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>sku</code></strong></td><td>String(128)</td><td>Código único que identifica al artículo.</td></tr><tr><td><strong><code>stock</code></strong></td><td>Int(6)</td><td>Cantidad de unidades disponibles para venta Web.</td></tr></tbody></table>

### Ejemplo <a href="#ejemplo-1" id="ejemplo-1"></a>

```json
{
  "status": "OK",
  "mensaje": null,
  "_idSolicitud": "200325120000-FNSHPUY-3c7621ed5a707177c1421cce79338668",
  "data": {
    "stockPorSku": [
      {
        "sku": "548972-002-01",
        "stock": 5
      },
      {
        "sku": "548972-002-03",
        "stock": 0
      }
    ]
  }
}
```

## Consideraciones

Dado la criticidad de este servicio (afecta la experiencia de usuario), el tiempo máximo de resolución de la respuesta no deberá superar los 1000 ms.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guia.fenicio.help/developers/integracion-de-comercios/servicios/stock-por-sku.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
