---
title: "Get Order Data Endpoint"
method: GET
path: "/api/order/data/{budget_id}"
tags: ["copilot_frontend", "copilot_order"]
---

# Get Order Data Endpoint

`GET /api/order/data/{budget_id}`

Gets saved order data for a budget that was converted to a pedido.

Returns the stored order_data from presup_pedidos table (without base64 file fields).

Args:
    budget_id: ID del presupuesto
    current_user: Current authenticated user
Returns:
    BudgetOrderResponse with order_data

Raises:
    ErrNotFound: If no order data found for the budget

## Path parameters

- `budget_id` integer, required

## Response `200`

Successful Response

- BudgetOrderResponse — Schema for budget order response.
  - `presupuesto_id` integer, required — ID del presupuesto asociado
  - `order_data` object, required — Datos del formulario de pedido (sin archivos base64)
  - `id` integer, required — ID del registro de pedido
  - `created_at` string, nullable — Fecha de creación
  - `updated_at` string, nullable — Fecha de última actualización

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