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

# Crear conteo de inventario

> Registra los niveles de stock actuales. Ajusta el inventario a las cantidades contadas.

<ParamField header="x-api-key" type="string" required>
  API key de BOH con scope `inventory:write`.
</ParamField>

<ParamField path="vendorId" type="string" required>UUID del vendor.</ParamField>

<ParamField body="store_id" type="string">UUID del establecimiento. Se requiere `store_id` o `external_store_id`.</ParamField>
<ParamField body="external_store_id" type="string">ID externo del establecimiento.</ParamField>
<ParamField body="occurred_at" type="string">Cuándo se realizó el conteo (ISO 8601). Por defecto: ahora.</ParamField>
<ParamField body="notes" type="string">Notas de texto libre.</ParamField>

<ParamField body="lines" type="object[]" required>
  Artículos contados.

  <Expandable title="campos de línea">
    <ParamField body="item_id" type="string">UUID del artículo.</ParamField>
    <ParamField body="external_item_id" type="string">ID externo del artículo.</ParamField>
    <ParamField body="quantity" type="number" required>Cantidad contada.</ParamField>
    <ParamField body="unit_id" type="string" required>UUID de la unidad.</ParamField>
  </Expandable>
</ParamField>

<ParamField body="external_user_id" type="string" required>Actor que realiza el conteo.</ParamField>
<ParamField body="idempotency_key" type="string">Clave de idempotencia.</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "external_store_id": "tienda-principal",
    "occurred_at": "2026-08-07T08:00:00.000Z",
    "lines": [
      {
        "external_item_id": "tomate-bola",
        "quantity": 8.5,
        "unit_id": "unit_kg_01..."
      }
    ],
    "external_user_id": "almacenista_01"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "sc_01...",
    "status": "COMPLETED",
    "store_id": "str_principal_01...",
    "occurred_at": "2026-08-07T08:00:00.000Z"
  }
  ```
</ResponseExample>
