================================================== Home Information ================================================== .. meta:: :description: Household and home information methods for E-BLOC platform :keywords: documentation, ebloc, home, information, apartment .. contents:: Table of Contents :depth: 2 :local: Introduction -------------------------------------------------- This section documents methods for retrieving household and apartment information from the E-BLOC platform. AjaxGetHomeApInfo -------------------------------------------------- This method returns JSON data containing various information about the household. **Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: cURL command :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetHomeApInfo.php' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -b 'username=[EMAIL]; facturi-luna-cur=-; index-luna-cur=-; asoc-cur=[AS-ID]; home-ap-cur=[AS-ID]-[AP-ID]; home-stat-cur=[MM]; PHPSESSID=[COOKY]; avizier-luna-cur=[YYYY]-[MM]' \ -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36' \ --data-raw 'pIdAsoc=[AS-ID]&pIdAp=[AP-ID]' **Response** .. dropdown:: Success Response :color: success :icon: info .. code-block:: json :caption: Success response :linenos: { "1": { "label_short": "Ap.", "datorie": "[OWNED-AMOUNT]", "luna_veche": "", "luna_afisata": "[YYYY]-[MM]", "ultima_zi_plata": "[YYYY]-[MM]-[DD]", "citire_contoare_start": "[YYYY]-[MM]-[DD]", "citire_contoare_end": "[YYYY]-[MM]-[DD]", "contoare_citite": "[NR OF MERTERS SENT]", "nr_luni": "[NR MONTHS SINCE ENROLED]", "data_curenta": "[YYYY]-[MM]-[DD]", "nivel_restanta": "[OWNED-LEVEL]", "nr_pers_definitie": "[PEOPLE NUMBER DEFINITION]", "nr_pers_afisat": "[PEOPLE]", "ap": "[AP-NR]", "right_edit_pers": "1", "right_edit_pers_global": "0", "nr_fonduri": "0", "nr_pers_set_luna_min": "[YYYY]-[MM]", "aDeclaratii": [], "plata_card": "0", "plata_pago": "0", "plata_selfpay": "0", "plata_qiwi": "0", "plata_paypoint": "0", "plata_undoi": "0", "cod_client": "" } } **Error Response** .. dropdown:: Error Response :color: danger :icon: info .. code-block:: json :caption: Error response :linenos: { "1": { "status": "nologin" } } AjaxGetHomeStat -------------------------------------------------- This method returns JSON data with per-item payments for the specified number of months. **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetHomeStat.php' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -b 'username=[EMAIL]; facturi-luna-cur=-; index-luna-cur=-; asoc-cur=[AS-ID]]; home-ap-cur=[AS-ID]-[AP-ID]; home-stat-cur=[?]; PHPSESSID=[COOKY]; avizier-luna-cur=[YYYY]-[MM]' \ -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36' \ --data-raw 'pIdAsoc=[AS-ID]&pIdAp=[AP-ID]&pLuni=[MONTHS]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getavizierluni.png .. :width: 400 .. :alt: getavizierluni .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "descriere": "[DESC]", "luna": "[YYYY]-[MM]", "suma": "[AMOUNT]", "id_coloana": "[TABLE-COL-ID]", "tip_coloana": "[COL-TYPE]", "coloana": "[COL-DESC]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } }