API DOCUMENTATION
getBookings (pOST)
This call returns the information of all the bookings.
Body params:
- id_property (string, optional): The property id to filter bookings.
 - id_customer (string, optional): The customer id to filter bookings.
 
Request examples
CURL:
curl --location 'https://movin.cloud/api/real-estate/get-bookings' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer SECRETOKEN'
Body examples:
In case the booking search needs to be filtered by property, add this filter in the request body:
{
    "id_property": "huriw(r3@"
}
In case the booking search has to be filtered by customer, add this filter in the request body:
{
    "id_customer": "huriw(r3@"
}
Response Example
{,
    "data": {
        "id_booking": "MjQ5JDI4Mzc1%&a01",
        "property_info": {
            "id_property": "MjQ5JDI4Mzc1",
            "name": "Nombre inmo 1",
            "reference": "a24b",
            "address": "dsfdf",
            "price": "32.00",
            "sqm": "234.00",
            "geo_fullname": "Gavà, Província de Barcelona, Catalunya, ES"
        },
        "status_info": {
            "id_status": 4,
            "name": "1.Pendiente de entrar (Check-In)"
        },
        "manager_info": {
            "id_manager": "MjQkMzg4MDM=",
            "name": "Daniel",
            "surnames": "4DMOVIN",
            "phone_number": "672251824",
            "email": "daniel@movin.cloud"
        },
        "intermediary_info": {
            "id_intermediary": “MG43k934$”,
            "name": "4DMOVIN Gestión Alquiler"
        },
        "signing_tenant_info": {
            "id_tenant": "MjQkMzYzMDI=",
            "name": "lucas",
            "surnames": "gomez",
            "phone_number": "345776348",
            "nif_cif": "984984s",
            "email": "lucas@namastech.com"
        },
        "block": 0,
        "contract_start_date": "2024-06-15",
        "contract_end_date": "2024-12-15",
        "creator_info": {
            "id_creator": "MjQkMzg4MDM=",
            "name": null,
            "surnames": null,
            "phone_number": null,
            "email": null
        },
        "booking_type_info": {
            "id_booking_type": “Mss23k934$”,
            "name": "All included"
        },
        "apply_vat": 1,
        "vat_percentage": 21,
        "apply_irpf": 0,
        "number_of_occupants": 3,
        "itp_payment": 1,
        "incasol_deposit_income": 0,
        "itp_payment_date": "2024-07-15",
        "monthly_rent": "826.45",
        "total_rent": "1000.00",
        "monthly_utilities": "165.29",
        "total_utilities": "200.00",
        "fees": "300.00",
        "fees_pvp": "363.00",
        "deposit": "2000.00",
        "deposit_months": 2,
        "itp": "500.00",
        "periodic_cleaning_fee": "180.00",
        "additional_guarantees": "500.00",
        "deposit_paid": 0,
        "renewal_count": 1,
        "extra_cleaning_amount": "150.00",
        "extra_cleaning_amount_pvp": "181.50",
        "check_in_amount": "180.00",
        "check_in_amount_pvp": "217.80",
        "subletting": 0,
        "with_management": 0,
        "housing_status_changed": 0
    }    ...
}
