ByDomuDevelopers

Detalle de contrato de arriendo

GEThttps://api.bydomu.com/v1/leases/{id}

Esta referência é gerada a partir do código da API, por isso as descrições estão em espanhol. Nomes, parâmetros e exemplos são iguais em qualquer idioma.

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

Permissão pedida

leases:read

Cabeçalho obrigatório

X-API-Key · chave secreta

Nível de acesso

Nível 2 · automático na Inmobiliaria Pro

Parâmetros de rota

1 · obrigatórios
idstring · obrigatório
ID del contrato

Resposta 200

LeaseDetail · 15 campos
dataid · startDate · endDate · monthlyRent · adminFee · securityDeposit · status · paymentDayOfMonth · lateFeePercentage · createdAt · property · tenant · manager · payments · maintenanceRequests
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
payments[]id · period · amount · adminFee · lateFee · totalAmount · status · dueDate · paidAt · paymentMethod
idstring
periodstring
amountstringNúmero decimal serializado como texto.
adminFeestringNúmero decimal serializado como texto.
lateFeestringNúmero decimal serializado como texto.
totalAmountstringNúmero decimal serializado como texto.
statusstringPENDING, PAID, PARTIAL, OVERDUE, WAIVED
dueDatestring
paidAtstring
paymentMethodstring
maintenanceRequests[]id · title · category · priority · status · estimatedCost · actualCost · createdAt · resolvedAt
idstring
titlestring
categorystringPLUMBING, ELECTRICAL, APPLIANCE, STRUCTURAL, PAINTING, LOCK_KEY
prioritystringLOW, MEDIUM, HIGH, URGENT
statusstringOPEN, IN_PROGRESS, WAITING_PARTS, RESOLVED, CLOSED, CANCELLED
estimatedCoststringNúmero decimal serializado como texto.
actualCoststringNúmero decimal serializado como texto.
createdAtstring
resolvedAtstring

Erros possíveis

com a forma { "error": { "code", "message" } }
  • 401UNAUTHORIZED
  • 403FORBIDDEN
  • 404NOT_FOUND
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
RequisiçãoGET/v1/leases/{id}
SDK oficial · @bydomu/sdk · ainda não está no npm
import { ByDomu } from "@bydomu/sdk";

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

const { data } = await bydomu.leases.get("clx1lea001");
200 OK · exemplo
{
  "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"
    },
    "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"
      }
    ]
  }
}