---
title: "Get History"
method: GET
path: "/api/budget/history"
tags: ["copilot_frontend", "copilot_budget"]
---

# Get History

`GET /api/budget/history`

Get paginated budget history for 'pedidos' status type, filtered by month/year.

- **ui_comercial**: Returns only their own budgets
- **admin**: Returns all budgets

## Query parameters

- `year` integer, required
- `month` integer, required
- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- BudgetHistoryResponse — Schema for paginated budget history response.
  - `items` BudgetHistoryItem[], required
    - `presupuesto_id` integer, required
    - `cliente_nombre` string, nullable
    - `cliente_email` string, nullable
    - `cliente_telefono` string, nullable
    - `estado_nombre` string, nullable
    - `comercial_nombre` string, nullable
    - `created_at` string, date-time, nullable
    - `updated_at` string, date-time, nullable
  - `total` integer, required

## 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-service-production.skmtc.workers.dev/v1/apis/hogarsolar/hogarsolar-backend-api/revisions/d9861e46bef8/schema)
