> ## 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 transferencia

> Mueve artículos de un establecimiento a otro. Disminuye el stock en origen y aumenta en destino.

<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="from_store_id" type="string">UUID del establecimiento origen. Se requiere `from_store_id` o `from_external_store_id`.</ParamField>
<ParamField body="from_external_store_id" type="string">ID externo del establecimiento origen.</ParamField>
<ParamField body="to_store_id" type="string">UUID del establecimiento destino. Se requiere `to_store_id` o `to_external_store_id`.</ParamField>
<ParamField body="to_external_store_id" type="string">ID externo del establecimiento destino.</ParamField>
<ParamField body="occurred_at" type="string">Cuándo ocurrió la transferencia (ISO 8601).</ParamField>
<ParamField body="notes" type="string">Notas adicionales.</ParamField>

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

  <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 transferida.</ParamField>
    <ParamField body="unit_id" type="string" required>UUID de la unidad.</ParamField>
  </Expandable>
</ParamField>

<ParamField body="external_user_id" type="string" required>Actor responsable.</ParamField>
<ParamField body="idempotency_key" type="string">Clave de idempotencia.</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "from_external_store_id": "cocina-principal",
    "to_external_store_id": "bar",
    "lines": [
      {
        "external_item_id": "tomate-bola",
        "quantity": 2,
        "unit_id": "unit_kg_01..."
      }
    ],
    "external_user_id": "almacenista_01"
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 201 theme={null}
  {
    "id": "tr_01...",
    "status": "COMPLETED",
    "from_store_id": "str_cocina_01...",
    "to_store_id": "str_bar_01..."
  }
  ```
</ResponseExample>
