# Detalle de contrato de arriendo

GET `https://api.bydomu.com/v1/leases/{id}`

This reference is generated from the API’s code, so descriptions are in Spanish. Names, parameters and examples are the same in every language.

El contrato con su propiedad, arrendatario, responsable, pagos de canon y solicitudes de mantenimiento.

Permission required

`leases:read`

Required header

`X-API-Key` · secret key

Access level

Level 2 · automatic on Inmobiliaria Pro

## Path parameters

1 · required

`id` string · **required**

ID del contrato

## Response 200

`LeaseDetail` · 15 fields

**`data` id · startDate · endDate · monthlyRent · adminFee · securityDeposit · status · paymentDayOfMonth · lateFeePercentage · createdAt · property · tenant · manager · payments · maintenanceRequests**

`id` string

`startDate` string

`endDate` string

`monthlyRent` string Número decimal serializado como texto.

`adminFee` string Número decimal serializado como texto.

`securityDeposit` string Número decimal serializado como texto.

`status` string DRAFT, ACTIVE, EXPIRED, TERMINATED, RENEWED

`paymentDayOfMonth` integer

`lateFeePercentage` string Número decimal serializado como texto.

`createdAt` string

**`property` id · title · address · city · type**

`id` string

`title` string

`address` string

`city` string

`type` string APARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE

**`tenant` id · firstName · lastName · phone · email**

`id` string

`firstName` string

`lastName` string

`phone` string `null` si el contacto llegó por un canal sin número (Instagram, Facebook, chat de la web, correo o WhatsApp con usuario y número oculto)

`email` string

**`manager` id · firstName · lastName**

`id` string

`firstName` string

`lastName` string

**`payments[]` id · period · amount · adminFee · lateFee · totalAmount · status · dueDate · paidAt · paymentMethod**

`id` string

`period` string

`amount` string Número decimal serializado como texto.

`adminFee` string Número decimal serializado como texto.

`lateFee` string Número decimal serializado como texto.

`totalAmount` string Número decimal serializado como texto.

`status` string PENDING, PAID, PARTIAL, OVERDUE, WAIVED

`dueDate` string

`paidAt` string

`paymentMethod` string

**`maintenanceRequests[]` id · title · category · priority · status · estimatedCost · actualCost · createdAt · resolvedAt**

`id` string

`title` string

`category` string PLUMBING, ELECTRICAL, APPLIANCE, STRUCTURAL, PAINTING, LOCK_KEY

`priority` string LOW, MEDIUM, HIGH, URGENT

`status` string OPEN, IN_PROGRESS, WAITING_PARTS, RESOLVED, CLOSED, CANCELLED

`estimatedCost` string Número decimal serializado como texto.

`actualCost` string Número decimal serializado como texto.

`createdAt` string

`resolvedAt` string

## Possible errors

shaped as `{ "error": { "code", "message" } }`

- **401** UNAUTHORIZED
- **403** FORBIDDEN
- **404** NOT_FOUND
- **429** RATE_LIMITED
- **500** INTERNAL_ERROR

cURL:

```bash
curl "https://api.bydomu.com/v1/leases/clx1lea001" \
  -H "X-API-Key: $BYDOMU_API_KEY"
```

JavaScript:

```js
import { ByDomu } from "@bydomu/sdk";

const bydomu = new ByDomu({
  apiKey: process.env.BYDOMU_API_KEY,
});

const { data } = await bydomu.leases.get("clx1lea001");
```

Python:

```python
import os, requests

r = requests.get(
    "https://api.bydomu.com/v1/leases/clx1lea001",
    headers={"X-API-Key": os.environ["BYDOMU_API_KEY"]}
)
data = r.json()
```

**Response · 200 · example**

```json
{
  "data": {
    "id": "clx1lea001",
    "startDate": "2026-01-01T00:00:00.000Z",
    "endDate": "2027-01-01T00:00:00.000Z",
    "monthlyRent": "2500000.00",
    "adminFee": "350000.00",
    "securityDeposit": "2500000.00",
    "status": "DRAFT",
    "paymentDayOfMonth": 5,
    "lateFeePercentage": "2.00",
    "createdAt": "2025-12-20T10:00:00.000Z",
    "property": {
      "id": "clx1prop002",
      "title": "Apto 301 Laureles",
      "address": "Cra 76 #35-18",
      "city": "Medellín",
      "type": "APARTMENT"
    },
    "tenant": {
      "id": "clx1con001",
      "firstName": "María",
      "lastName": "González",
      "phone": "+573009876543",
      "email": "ana@email.com"
    },
    "manager": {
      "id": "clx1usr001",
      "firstName": "Carlos",
      "lastName": "Rodríguez"
    },
    "payments": [
      {
        "id": "clx1rpy001",
        "period": "2026-09",
        "amount": "2500000.00",
        "adminFee": "350000.00",
        "lateFee": "0.00",
        "totalAmount": "2850000.00",
        "status": "PENDING",
        "dueDate": "2026-09-05T00:00:00.000Z",
        "paidAt": "2026-09-04T15:20:00.000Z",
        "paymentMethod": "TRANSFERENCIA"
      }
    ],
    "maintenanceRequests": [
      {
        "id": "clx1mnt001",
        "title": "Fuga en el baño",
        "category": "PLUMBING",
        "priority": "LOW",
        "status": "OPEN",
        "estimatedCost": "180000.00",
        "actualCost": "150000.00",
        "createdAt": "2026-09-10T08:00:00.000Z",
        "resolvedAt": "2026-09-12T17:00:00.000Z"
      }
    ]
  }
}
```
