# lease.renewed

> The ByDomu lease.renewed event (Lease renewed): when it fires, how to subscribe, its fields and the payload delivered by webhook.


Lease renewed

Object · lease Includes · contact Includes · property Instant

## When it fires

A lease was renewed: a new one is created. renewal carries the previous and new ids; the record is the new one.

Instantly, when it happens in ByDomu: from the app, the API, Noa, an automation or an integration. `actor.kind` tells you who: USER, NOA, SYSTEM, API, AUTOMATION or INTEGRATION.

## Subscribe with

- `lease.renewed` Only this event
- `lease.*` Every event of Lease
- `*` The whole catalog

## Fields it carries

paths for filters and templates

`lease.id` Lease id

`lease.code` Lease code

`lease.status` Lease status

`lease.startDate` Lease start

`lease.endDate` Lease end

`lease.monthlyRent` Monthly rent

`lease.currency` Currency

`lease.propertyId` Listing

`lease.tenantId` Tenant

`lease.ownerId` Owner

`lease.managerId` Manager

`lease.daysToEnd` Days to expiry

`contact.id` Contact id

`contact.code` Contact code

`contact.firstName` First name

`contact.lastName` Last name

`contact.email` Email

`contact.phone` Phone

`contact.source` Source

`contact.status` Status

`contact.type` Contact type

`contact.score` Score

`contact.ownerId` Owner

`contact.preferredCity` City of interest

`contact.preferredType` Property type they want

`contact.budget` Budget

`contact.tags` Tags

`property.id` Listing id

`property.code` Listing code

`property.title` Listing title

`property.type` Property type

`property.transactionType` Operation

`property.status` Listing status

`property.price` Sale price

`property.rentPrice` Rent price

`property.currency` Currency

`property.city` City

`property.neighborhood` Neighborhood

`property.bedrooms` Bedrooms

`property.bathrooms` Bathrooms

`property.area` Area

`property.agentId` Agent

`property.previousPrice` Previous price

`property.previousStatus` Previous status

Up to 5 attempts (0 s, 5 s, 30 s, 2 min and 10 min) on network errors, 429 or 5xx. Reply 2xx in under 10 s.

Payload:

```
{
  "event": "lease.renewed",
  "id": "5f3a0c1e-7d2b-4f7e-9a51-0b6c1d2e3f40",
  "type": "lease.renewed",
  "timestamp": "2026-09-22T14:30:00.000Z",
  "organizationId": "clx1org001",
  "actor": {
    "kind": "USER",
    "userId": "clx1usr001"
  },
  "data": {
    "lease": {
      "id": "clx1lea002",
      "code": "A-0019",
      "status": "ACTIVE",
      "startDate": "2026-11-01T00:00:00.000Z",
      "endDate": "2027-10-31T00:00:00.000Z",
      "daysToEnd": 395,
      "monthlyRent": 3350000,
      "adminFee": 380000,
      "currency": "COP",
      "paymentDayOfMonth": 5,
      "propertyId": "clx1prop002",
      "tenantId": "clx1con002",
      "ownerId": "clx1con003",
      "managerId": "clx1usr001",
      "createdAt": "2025-10-28T19:00:00.000Z"
    },
    "contact": {
      "id": "clx1con002",
      "code": "C-0043",
      "firstName": "Camilo",
      "lastName": "Duarte",
      "fullName": "Camilo Duarte",
      "email": "camilo.duarte@example.com",
      "phone": "+573000000002",
      "source": "REFERRAL",
      "status": "WON",
      "type": "CLIENT",
      "score": 90,
      "ownerId": "clx1usr001",
      "preferredCity": "Medellín",
      "preferredType": "APARTMENT",
      "budget": 3200000,
      "currency": "COP",
      "tags": [
        "Arrendatario"
      ],
      "createdAt": "2025-11-02T13:00:00.000Z"
    },
    "property": {
      "id": "clx1prop002",
      "code": "P-0057",
      "title": "Apartamento en El Poblado cerca a la estación",
      "type": "APARTMENT",
      "transactionType": "RENT",
      "status": "RENTED",
      "price": null,
      "rentPrice": 3200000,
      "currency": "COP",
      "city": "Medellín",
      "neighborhood": "El Poblado",
      "address": "Cl 10 #43-20",
      "bedrooms": 2,
      "bathrooms": 2,
      "area": 68,
      "agentId": "clx1usr001",
      "createdAt": "2025-10-20T14:00:00.000Z"
    },
    "renewal": {
      "previousLeaseId": "clx1lea001",
      "newLeaseId": "clx1lea002"
    }
  }
}
```

Headers:

```
X-Domu-Event: lease.renewed
X-Domu-Signature: t=1790610130,v1=9c1e…
User-Agent: Domu-Webhooks/2
```

Verify signature:

```
import { createHmac, timingSafeEqual } from "node:crypto";

// header = X-Domu-Signature: t=<timestamp>,v1=<hmac>
function verifyWebhook(rawBody, header, secret, toleranceSec = 300) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const timestamp = Number(parts.t);
  if (!timestamp || !parts.v1) return false;
  if (Math.abs(Date.now() / 1000 - timestamp) > toleranceSec) return false;
  const expected = createHmac("sha256", secret)
    .update(`${timestamp}.${rawBody}`)
    .digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1);
  return a.length === b.length && timingSafeEqual(a, b);
}
```

**Get it with your test data** GET /v1/webhooks/sample/lease.renewed

[Try it](https://developers.bydomu.com/en/referencia/get-webhook-sample?probar=1&type=lease.renewed)
