---
title: "Consultar unidades"
method: GET
path: "/units"
tags: ["Unidades"]
---

# Consultar unidades

`GET /units`

## Request

- Base URL: `https://api.pirpos.com`
- URL: `https://api.pirpos.com/units`
- Auth: HTTP bearer

Retorna todas las unidades activas del negocio (incluye negocio padre si aplica).

**Autenticación requerida:** Bearer Token.

## Response `200`

Lista de unidades

- Unit[]
  - `_id` string: ID único de la unidad
  - `business` string: ID del negocio
  - `name` string: Nombre de la unidad
  - `deleted` boolean: Si está eliminada
  - `modifiedOn` string, date-time: Fecha de última modificación
  - `createdOn` string, date-time: Fecha de creación

## Other responses

- `401`: No autorizado
- `500`: Error interno del servidor

---

[API](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar.md) - [All operations](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar/llms.txt) - [OpenAPI document](https://skmtc.dev/loggro/apis/restobar-servicios-del-m-dulo-de-restobar/revisions/9d4431a3cddc?raw)
