---
title: "Reject Order"
method: POST
path: "/api/budget/{budget_id}/rechazar_pedido"
tags: ["copilot_frontend", "copilot_budget"]
---

# Reject Order

`POST /api/budget/{budget_id}/rechazar_pedido`

## 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/budget/{budget_id}/rechazar_pedido`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/hogarsolar/apis/hogarsolar-backend-api/docs/api/budget/:budget_id/rechazar_pedido/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `budget_id` integer, required

## Request body

- RechazarPresupuestoRequest: Request to cancel a budget (presupuesto).
  - `motivo` string, nullable: Optional reason for cancellation

## Response `200`

Successful Response

- object

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