---
title: "Create Test Visit"
method: POST
path: "/api/budget/test-utils/create-visit"
tags: ["copilot_frontend", "copilot_budget", "copilot_budget_test_utils"]
---

# Create Test Visit

`POST /api/budget/test-utils/create-visit`

Create a mock visit (presupuesto with estado_id=1, tipo_estado=visita).
This endpoint is only available when ENABLE_TEST_UTILS=true.

## Request body

- CreateVisitRequest
  - `comercial_email` string, required
  - `cliente_email` string, required
  - `cliente_nombre` string, nullable
  - `cliente_telefono` string, nullable
  - `cliente_direccion` string, nullable
  - `cliente_localidad` string, nullable
  - `cliente_cp` string, nullable
  - `cliente_provincia` string, nullable

## Response `200`

Successful Response

- unknown

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