Trash



Base URL

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

Endpoints

1. Get Trash

Retrieves the list of deleted items in the trash.
Endpoint:
GET https://api.rentila.com/landlord/trash
Parameters:
Parameter
Type
Description
sort_by
string
Field to sort the results by (default: TrashID)
sort_order
string
Sort order: ASC or DESC (default: DESC)
page
int
Page number (default: 1)
show_per_page
int
Number of results per page
filter[ObjectType]
string
Type of object in the trash
filter[PropertyID]
int
Filter by Property ID
Response Example:
{
"code": 200,
"status": "success",
"data": {
"records": [
{
"TrashID": 123,
"TrashLabel": "Deleted Property",
"TrashCreatedAt": "2024-01-15 10:00:00"
}
],
"types": {
"Properties": "Biens",
"Leases": "Locations"
},
"pagination": {
"page": 1,
"total_pages": 2
}
},
"message": "OK"
}



2. Get Filters

Retrieves available filters for trash items.
Endpoint:
GET https://api.rentila.com/landlord/trash/filters

Response Example:
{
"code": 200,
"status": "success",
"data": {
"types": [
{ "id": "Properties", "label": "Biens" },
{ "id": "Leases", "label": "Locations" }
],
"properties": [
{ "id": 11, "label": "22 rue Georges Bizet" }
]
},
"message": "OK"
}