ByDomuDevelopers

Listar contratos de arriendo

GEThttps://api.bydomu.com/v1/leases

Contratos de arrendamiento, del más reciente al más antiguo (pageSize máximo 100).

Permiso que pide

leases:read

Encabezado obligatorio

X-API-Key · clave secreta

Nivel de acceso

Nivel 2 · automático en Inmobiliaria Pro

Parámetros de consulta

5 · todos opcionales
statusstring · opcional
Estado del contratoDRAFT · ACTIVE · EXPIRED · TERMINATED · RENEWED
propertyIdstring · opcional
Propiedad arrendada
tenantIdstring · opcional
Contacto arrendatario
pageinteger · opcional
Página, desde 1por defecto 1 · ≥ 1
Ver los otros 1 parámetros
pageSizeinteger · opcional
Contratos por página (máximo 100)por defecto 20 · 1–100

Respuesta 200

Lease[] · 13 campos
data[]id · startDate · endDate · monthlyRent · adminFee · securityDeposit · status · paymentDayOfMonth · lateFeePercentage · createdAt · property · tenant · manager
idstring
startDatestring
endDatestring
monthlyRentstringNúmero decimal serializado como texto.
adminFeestringNúmero decimal serializado como texto.
securityDepositstringNúmero decimal serializado como texto.
statusstringDRAFT, ACTIVE, EXPIRED, TERMINATED, RENEWED
paymentDayOfMonthinteger
lateFeePercentagestringNúmero decimal serializado como texto.
createdAtstring
propertyid · title · address · city · type
idstring
titlestring
addressstring
citystring
typestringAPARTMENT, HOUSE, OFFICE, COMMERCIAL, LAND, WAREHOUSE
tenantid · firstName · lastName · phone · email
idstring
firstNamestring
lastNamestring
phonestring`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)
emailstring
managerid · firstName · lastName
idstring
firstNamestring
lastNamestring
metaPaginación por número de página.
totalintegerTotal de registros
pageintegerPágina actual
pageSizeintegerRegistros por página
totalPagesintegerTotal de páginas

Errores posibles

con la forma { "error": { "code", "message" } }
  • 400Datos inválidos: el cuerpo o la query no cumplen el esquema, o `Idempotency-Key` está mal formada.
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
PeticiónGET/v1/leases
SDK oficial · @bydomu/sdk · aún no está en npm
import { ByDomu } from "@bydomu/sdk";

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

const { data, meta } = await bydomu.leases.list();
200 OK · ejemplo
{
  "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": "[email protected]"
      },
      "manager": {
        "id": "clx1usr001",
        "firstName": "Carlos",
        "lastName": "Rodríguez"
      }
    }
  ],
  "meta": {
    "total": 150,
    "page": 1,
    "pageSize": 20,
    "totalPages": 8
  }
}