> For the complete documentation index, see [llms.txt](https://guia.fenicio.help/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guia.fenicio.help/developers/api-v1/sucursales.md).

# Sucursales

Permite obtener la información de sucursales en ordenes cargadas en Fenicio.

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

## Request

Se deberá realizar una consulta `GET` a la URL correspondiente, siendo el último segmento `{sucursales}`, incluyendo opcionalmente los parámetros que se deseen.

<table data-full-width="false"><thead><tr><th width="233.93336995442706">Clave</th><th width="148">Tipo</th><th>Descripción</th></tr></thead><tbody><tr><td><strong><code>idSucursal</code></strong></td><td>int</td><td>Identificador de la sucursal. Si se informa, se retorna únicamente la sucursal correspondiente.</td></tr><tr><td><strong><code>pickup</code></strong></td><td>String</td><td>Permite obtener solo las sucursales habilitadas para retiro. Valor posible: "si".</td></tr><tr><td><strong><code>excluirNoAtiendePublico</code></strong></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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guia.fenicio.help/developers/api-v1/sucursales.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
