Interventions



Base URL

https://api.rentila.com/landlord/interventions


1. Get Interventions

Endpoint

GET https://api.rentila.com/landlord/interventions

Description

Retrieves a list of interventions associated with the landlord.

Parameters

Parameter
Type
Required
Description
filter
object
No
Filter criteria (e.g., PropertyID, BuildingID, TenantID).
sort_by
string
No
Field to sort by. Available values: InterventionID, InterventionSubject, InterventionStatus. Default is InterventionID.
sort_order
string
No
Sorting order: ASC or DESC. Default is DESC.
page
int
No
Page number for pagination. Default is 1.
show_per_page
int
No
Number of records per page.
active
int
No
1 for active interventions, 0 for archived ones.

Response

Success Response

{
"code": 200,
"status": "success",
"data": {
"interventions": [
{
"InterventionID": 1234,
"InterventionSubject": "Plumbing Issue",
"InterventionStatus": 1,
"InterventionTypeName": "Repair",
"InterventionTypeIcon": "repair_icon.png",
"late": 0
}
],
"pagination": {
"current_page": 1,
"total_pages": 2,
"total_records": 20
}
},
"message": "OK"
}

Error Response

{
"code": 403,
"status": "error",
"message": "Not authorized"
}