# Sucursales

* Obtener todas las sucursales

<table data-full-width="false"><thead><tr><th width="137">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>GET</code></td><td><code>/API_V1/sucursales</code></td></tr></tbody></table>

* Obtener sucursales habilitadas para retiro (pickup)

<table><thead><tr><th width="151">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>GET</code></td><td><code>/API_V1/sucursales?pickup=si</code></td></tr></tbody></table>

* Obtener una sucursal específica

<table><thead><tr><th width="168">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>GET</code></td><td><code>/API_V1/sucursales?idSucursal=123</code></td></tr></tbody></table>

* Obtener sucursales con atención al público

<table><thead><tr><th width="168">Método</th><th>URL</th></tr></thead><tbody><tr><td><code>GET</code></td><td><code>/API_V1/sucursales?excluirNoAtiendePublico=si</code></td></tr></tbody></table>

## Request

Se deberá realizar una consulta GET a la URL correspondiente, pudiendo incluir parámetros de filtrado.

<table data-full-width="false"><thead><tr><th width="220.33333333333331">Clave</th><th width="148">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td>idSucursal</td><td>int</td><td>Identificador de la sucursal. Si se informa, se retorna únicamente la sucursal correspondiente.</td></tr><tr><td>pickup</td><td>String</td><td>Permite obtener solo las sucursales habilitadas para retiro. Valor posible: "si".</td></tr><tr><td>excluirNoAtiendePublico</td><td>String</td><td>Permite filtrar sucursales según disponibilidad de atención al público. Valores posibles: "si" (excluye las que no atienden), "no" (incluye todas).</td></tr></tbody></table>

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

```url
https://example.com/API_V1/sucursales
```

## Response

<table data-full-width="false"><thead><tr><th width="165.33333333333331">Clave</th><th width="148">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>error</code></strong></td><td>Boolean</td><td>Valor booleano que indica si se generó algún error en la consulta.</td></tr><tr><td><strong><code>msj</code></strong></td><td>String</td><td>Mensaje descriptivo sobre la consulta realizada.</td></tr><tr><td><strong><code>sucursales</code></strong></td><td><a href="/pages/iQQQnLSiSaZQNlZ2u1fp#sucursales"><strong>Sucursales</strong></a></td><td>Despliega las sucursales del sitio.</td></tr></tbody></table>

{% hint style="info" %}
La respuesta puede variar según los parámetros enviados en el request.
{% endhint %}

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

#### Obtener todas las sucursales <a href="#ejemplo-1" id="ejemplo-1"></a>

```json
{
  "error": false,
  "msj": "",
  "sucursales":
  }
}
```

#### Obtener sucursales para retiro

```json
{
  "error": false,
  "msj": "",
  "sucursales": [
    {
      "id": 1,
      "nombre": "Sucursal Centro",
      "pickup": true
    }
  ]
}
```

#### Obtener una sucursal específica

```json
{
  "error": false,
  "msj": "",
  "sucursales": [
    {
      "id": 123,
      "nombre": "Sucursal Punta Carretas"
    }
  ]
}
```


---

# 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/api-v1/sucursales.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.
