---
title: "Create Lendismart Application"
method: POST
path: "/api/budget/lendismart/create-application"
tags: ["copilot_frontend", "copilot_budget", "lendismart"]
---

# Create Lendismart Application

`POST /api/budget/lendismart/create-application`

Crea una solicitud de financiación pre-rellenada en Lendismart.

Args:
    request: datos_presupuesto_id (y opcional client_data_record_id)

Returns:
    application_url: URL de Lendismart para el cliente
    application_id: ID de la solicitud en Lendismart

## Request body

- LendismartCreateRequest — Request para crear una solicitud de financiación en Lendismart.
  - `datos_presupuesto_id` integer, required — ID del registro en presup_datos_presupuesto_cliente
  - `client_data_record_id` integer, nullable — ID del registro de datos del cliente (deprecated, usar datos_presupuesto_id)
  - `selected_option_id` integer, nullable — ID de la opción seleccionada (1-8). Si no se proporciona, usa la opción del registro firmado

## Response `200`

Successful Response

- LendismartCreateResponse — Response tras crear una solicitud en Lendismart.
  - `success` boolean, required — Si la solicitud se creó correctamente
  - `application_id` string, nullable — ID de la solicitud en Lendismart
  - `application_url` string, nullable — URL para que el cliente complete la solicitud
  - `message` string, nullable — Mensaje de error o información adicional
  - `lendismart_response` object, nullable — Respuesta completa de Lendismart

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