---
title: "Confirmar Instalacion"
method: POST
path: "/api/citas/instalacion/confirmar"
tags: ["copilot_frontend", "instalacion_copilot"]
---

# Confirmar Instalacion

`POST /api/citas/instalacion/confirmar`

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

Schedules an installation from the CRM (source="Copilot"):
1. Verifies there is no existing appointment.
2. Writes fecha_confirmada_instalacion + hora to the selected deal.
3. Delegates the rest to execute_instalacion (shared service).

## Request body

- ConfirmarInstalacionRequest
  - `email` string, required
  - `deal_id` string, required
  - `fecha` string, required
  - `comercial_email` string, required
  - `comercial_nombre` string, required
  - `firstname` string, nullable
  - `lastname` string, nullable
  - `phone` string, nullable
  - `address` string, nullable
  - `city` string, nullable
  - `zip` string, nullable
  - `provincia` string, nullable

## Response `200`

Successful Response

- ConfirmarInstalacionResponse
  - `success` boolean, required
  - `event_id` string, nullable
  - `deal_id` string, required
  - `comercial_nombre` string, required
  - `appointment_time` string, 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.dev/hogarsolar/apis/hogarsolar-backend-api/revisions/1dc9ad769f97?raw)
