---
title: "Pedir Factura Luz"
method: POST
path: "/api/budget/pedir-factura-luz"
tags: ["copilot_frontend", "copilot_budget"]
---

# Pedir Factura Luz

`POST /api/budget/pedir-factura-luz`

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

Marca en HubSpot que se debe pedir la factura de la luz al cliente.

Actualiza la propiedad 'pedir_factura_de_luz' del contacto con valor 'Si'.

**🔒 Protected Endpoint:** Requires JWT authentication and 'ui_comercial' or 'admin' role

Args:
    data: Email del cliente
    current_user: Current authenticated user

Returns:
    PedirFacturaLuzResponse con el resultado de la operación

## Request body

- PedirFacturaLuzRequest: Request para marcar que se pide factura de la luz.
  - `email` string, required: Email del cliente

## Response `200`

Successful Response

- PedirFacturaLuzResponse: Response tras marcar pedir factura de la luz.
  - `success` boolean, required: Si la operación fue exitosa
  - `message` string, required: Mensaje de resultado
  - `contact_id` string, nullable: ID del contacto actualizado en HubSpot

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