---
title: "Lendismart Webhook"
method: POST
path: "/api/budget/lendismart/webhook"
tags: ["copilot_frontend", "copilot_budget", "lendismart"]
---

# Lendismart Webhook

`POST /api/budget/lendismart/webhook`

Webhook para recibir actualizaciones de estado de Lendismart.

Lendismart llama a este endpoint cuando cambia el estado de una solicitud.
No requiere autenticación ya que es llamado externamente por Lendismart.

Args:
    request: Datos del webhook con id y state de la aplicación

Returns:
    Confirmación de la actualización

## Request body

- LendismartWebhookRequest — Request del webhook de Lendismart cuando cambia el estado de una solicitud. Estructura: { "id": "event-uuid", "eventType": "STATE_UPDATE", "application": { "id": "application-uuid", "state": "PREAPPROVED", ... } }
  - `id` string, required — ID del evento (UUID)
  - `eventType` string, required — Tipo de evento (STATE_UPDATE, etc.)
  - `application` LendismartWebhookApplication, required — Datos de la aplicación dentro del webhook de Lendismart.
    - `id` string, required — ID de la aplicación en Lendismart (UUID)
    - `state` string, required — Estado de la solicitud (DRAFT, PREAPPROVED, APPROVED, DENIED, etc.)

## Response `200`

Successful Response

- LendismartWebhookResponse — Response del webhook de Lendismart.
  - `success` boolean, required — Si la actualización se procesó correctamente
  - `message` string, required — Mensaje descriptivo
  - `application_id` string, nullable — ID de la solicitud procesada
  - `previous_state` string, nullable — Estado anterior
  - `new_state` string, nullable — Nuevo estado

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