API DOCUMENTATION
getActivities (POST)
Returns the activities information given at least the user id. The activities search can be narrowed down with the start_date, the end_date and the calendar_control.
Body params:
- id_user (string, required): The user id.
- start_date (date time, optional): Date when the activities start. The default value is null.
- end_date (date time, optional): Date when the activities end. The default value is null.
- calendar_control (integer, optional): 0 or null to return all activities, 1 only return activities for which users have their schedule blocked (for example, a visit or a meeting). The default value is null.
Request example
CURL:
curl --location 'https://movin.cloud/api/real-estate/get-activities' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Request example:
{
"id_user": “1as@dad3!ad”,
"start_date": "2024-06-17 16:33:09",
"end_date": "2024-06-17 17:33:09”,
“calendar_control”: 1
}
Response example
{
“data”: [
{
"id_activity": “a$79@da”,
"activity_title": "asd",
"activity_status": {
"id_status": 1,
"status_name": "Abierta"
},
"activity_resolution": {
"id_resolution": “MjFs34%”,
"resolution_name": "Resolucion 1"
},
"activity_type": {
"id_type": ”MGji8%”,
"type_name": "Visita captación pasiva"
},
"activity_location": null,
"id_user": “2&5E$@dwq1”,
"start_date": "2023-06-21 19:00:00",
"end_date": "2023-06-21 20:00:00",
"id_property": 158375
},
{
"id_activity": “#23d2GDf&?”,
"activity_title": "asd",
"activity_status": {
"id_status": 1,
"status_name": "Abierta"
},
"activity_resolution": {
"id_resolution": “MjFs34%”,
"resolution_name": "Resolucion 1"
},
"activity_type": {
"id_type": “MjFs34%”,
"type_name": "Visita captación pasiva"
},
"activity_location": null,
"id_user": “2&5Eg4$@dwq1”,
"start_date": "2023-06-21 19:00:00",
"end_date": "2023-06-21 20:00:00",
"property_info": [
{
"id_property": “2&5Eg%Fg@q1”,
"property_name": "0u 4 -",
"property_reference": "31922",
"property_address": "0u 4 -",
"property_price": "289900.00",
"property_sqm": "360.00",
"property_geo_fullname": "Ullastrell, Barcelona, ES"
},
{
"id_property": “6yh4$Eg4$73bV1”,
"property_name": "Agustina d'Aragó, 16",
"property_reference": "EIXDÚP_614",
"property_address": "Carrer d'Agustina d'Aragó, 16 4º1ª",
"property_price": "290680.00",
"property_sqm": "148.00",
"property_geo_fullname": "Sabadell, Barcelona, ES"
}
],
"customer_info": [
{
"id_customer": “98a¡aAg%Fg@q1”,
"customer_name": " , Andrea",
"customer_surnames": null,
"customer_nif_cif": "00000000A",
"customer_phone_number": 123456542,
"customer_whatsapp": 0,
"customer_email": "andrea@asd.es"
},
{
"id_customer": “2&5+ASDg@q1”,
"customer_name": " , Pepe",
"customer_surnames": Garcia,
"customer_nif_cif": "00000000A",
"customer_phone_number": null,
"customer_whatsapp": 1,
"customer_email": "pepepepe@dsiojf.com"
},
]
},
…
}