Contacts



Base URL

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


Endpoints

1. Get Professions

Endpoint:
GET https://api.rentila.com/landlord/contacts/professions
Description: Retrieves a list of contact professions.
Response Example:

{
"code": 200,
"status": "success",
"data": {
"1": "Plumber",
"2": "Electrician",
"3": "Lawyer"
},
"message": "OK"
}


2. Get Filters

Endpoint:
GET https://api.rentila.com/landlord/contacts/filters
Description: Retrieves filtering options including landlords, professions, buildings, and properties.
Response Example:
{
"code": 200,
"status": "success",
"data": {
"landlords": {"888279": "Immotop.lu"},
"profession": {"1": "Plumber", "2": "Electrician"},
"buildings": {"b61853": "IMEEEUBLLE1"},
"properties": {"11": "22 rue Georges Bizet VENDU"}
},
"message": "OK"
}


3. Get Contacts

Endpoint:
GET https://api.rentila.com/landlord/contacts
Query Parameters:
  • id (optional): Retrieve a specific contact by ID.
  • filter (optional): Apply filters.
  • sort_by: Sort field (e.g., ContactName).
  • sort_order: Sorting order (ASC or DESC).
  • page: Page number for pagination.
  • show_per_page: Number of contacts per page.
Response Example:
{
"code": 200,
"status": "success",
"data": {
"contacts": [
{
"ContactID": 123,
"ContactName": "John Doe",
"ContactEmail": "john.doe@example.com",
"ContactMobilePhone": "+1234567890"
}
],
"pagination": {
"current_page": 1,
"total_pages": 3,
"total_records": 25
}
},
"message": "OK"
}