Home Information

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

Using curl
cURL command
1curl 'https://www.e-bloc.ro/ajax/AjaxGetHomeApInfo.php' \
2   -H 'Content-Type: application/x-www-form-urlencoded' \
3   -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]' \
4   -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' \
5   --data-raw 'pIdAsoc=[AS-ID]&pIdAp=[AP-ID]'

Response

Success Response
Success response
 1{
 2  "1": {
 3      "label_short": "Ap.",
 4      "datorie": "[OWNED-AMOUNT]",
 5      "luna_veche": "",
 6      "luna_afisata": "[YYYY]-[MM]",
 7      "ultima_zi_plata": "[YYYY]-[MM]-[DD]",
 8      "citire_contoare_start": "[YYYY]-[MM]-[DD]",
 9      "citire_contoare_end": "[YYYY]-[MM]-[DD]",
10      "contoare_citite": "[NR OF MERTERS SENT]",
11      "nr_luni": "[NR MONTHS SINCE ENROLED]",
12      "data_curenta": "[YYYY]-[MM]-[DD]",
13      "nivel_restanta": "[OWNED-LEVEL]",
14      "nr_pers_definitie": "[PEOPLE NUMBER DEFINITION]",
15      "nr_pers_afisat": "[PEOPLE]",
16      "ap": "[AP-NR]",
17      "right_edit_pers": "1",
18      "right_edit_pers_global": "0",
19      "nr_fonduri": "0",
20      "nr_pers_set_luna_min": "[YYYY]-[MM]",
21      "aDeclaratii": [],
22      "plata_card": "0",
23      "plata_pago": "0",
24      "plata_selfpay": "0",
25      "plata_qiwi": "0",
26      "plata_paypoint": "0",
27      "plata_undoi": "0",
28      "cod_client": ""
29  }
30}

Error Response

Error Response
Error response
1{
2   "1": {
3      "status": "nologin"
4   }
5}

AjaxGetHomeStat

This method returns JSON data with per-item payments for the specified number of months.

Forge Request

Using curl
curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetHomeStat.php' \
2   -H 'Content-Type: application/x-www-form-urlencoded' \
3   -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]' \
4   -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' \
5   --data-raw 'pIdAsoc=[AS-ID]&pIdAp=[AP-ID]&pLuni=[MONTHS]'

Response Structure

Click to see the response
response
 1{
 2  "1": {
 3      "status": "ok",
 4      "descriere": "[DESC]",
 5      "luna": "[YYYY]-[MM]",
 6      "suma": "[AMOUNT]",
 7      "id_coloana": "[TABLE-COL-ID]",
 8      "tip_coloana": "[COL-TYPE]",
 9      "coloana": "[COL-DESC]"
10  }
11}

Reject Response

Click to see the response
response
1{
2   "1": {
3      "status": "nologin"
4   }
5}