---
title: "Firmar Formulario"
method: POST
path: "/api/hubspot/formulario_finalizacion/{token}/firmar"
tags: ["hubspot", "hubspot"]
---

# Firmar Formulario

`POST /api/hubspot/formulario_finalizacion/{token}/firmar`

Guarda la firma del cliente y actualiza el estado del formulario a 'firmado'.

Args:
    token: Token único del formulario
    firma_data: DNI del cliente y firma en base64
    db: Sesión de base de datos

Returns:
    Confirmación de firma exitosa

## Path parameters

- `token` string, required

## Request body

- FormularioConformidadFirmar — Schema para firmar un formulario de conformidad
  - `dni_cliente` string, required — DNI/NIF del cliente
  - `firma_base64` string, required — Imagen de la firma en formato base64

## Response `200`

Successful Response

- FormularioConformidadFirmaResponse — Schema de respuesta tras firmar un formulario
  - `success` boolean, required
  - `message` string, required
  - `formulario_id` integer, required
  - `dni_cliente` string, required
  - `fecha_firmado` string, required
  - `pdf_enviado_cliente` boolean, required
  - `pdf_subido_hubspot` boolean, 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/d9861e46bef8?raw)
