---
title: "Get Horarios Calendario"
method: GET
path: "/api/admin/comerciales/{comercial_id}/horarios-calendario"
tags: ["copilot_frontend", "admin", "admin-comerciales", "comerciales"]
---

# Get Horarios Calendario

`GET /api/admin/comerciales/{comercial_id}/horarios-calendario`

## Request

- Base URL: `https://api.hogarsolar.es` (the document declares no server; this is the origin it was published from)
- URL: `https://api.hogarsolar.es/api/admin/comerciales/{comercial_id}/horarios-calendario`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/docs/api/admin/comerciales/:comercial_id/horarios-calendario/get.ts> (a function with typed inputs; its response is checked against the schema)

Obtiene todos los horarios calendario de un comercial.

Args:
    comercial_id: ID del comercial
    db: Sesión de base de datos

Returns:
    Lista de horarios calendario

## Path parameters

- `comercial_id` integer, required

## Response `200`

Successful Response

- ComercialHorarioCalendarioResponse[]
  - `fecha_inicio` string, date, required: Fecha de inicio del periodo
  - `fecha_fin` string, date, required: Fecha de fin del periodo (inclusive)
  - `work_start_time` string, time, required: Hora de inicio de jornada
  - `work_end_time` string, time, required: Hora de fin de jornada
  - `descripcion` string, nullable: Descripción del periodo
  - `id` integer, required
  - `comercial_id` integer, required
  - `created_at` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api.md) - [All operations](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/revisions/b4cc3cebfaaa?raw)
