Payments
Introduction
This section documents methods for retrieving payment information and liability data from the E-BLOC platform.
AjaxGetPlatiAp
This method returns JSON with payment information and status for an apartment, useful for checking if payments are available or enabled.
Using curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiAp.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]'
Response Structure
Click to see the response
1{
2 "1": {
3 "status": "ok",
4 "id_asoc": "[AS-ID]",
5 "id_ap": "[AP-ID]"
6 }
7}
Reject Response
Click to see the response
1{
2 "1": {
3 "status": "nologin"
4 }
5}
AjaxGetPlatiChitanteToti
This method will return a json with a few entries in the payment history
Forge Request
Using curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiChitanteToti.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]'
Response Structure
Click to see the response
1{
2 "1": {
3 "status": "ok",
4 "id_ap": "[AP-ID]",
5 "id_chit": "[RECIP-ID]",
6 "id_cont": "[CONT-ID]",
7 "luna": "[YYYY]-[MM]",
8 "numar": "[PAYMENT-NR]",
9 "data": "[YYYY]-[MM]-[DD]",
10 "descriere": "[DESC]",
11 "suma": "[AMOUNT]",
12 "id_user": "[USR-ID]",
13 "more": "[0 IF NOT LAST ELSE 1]"
14 }
15}
Reject Response
Click to see the response
1{
2 "1": {
3 "status": "nologin"
4 }
5}
AjaxGetPlatiDatoriiToti
This method will return a json with a few entryed from the money owned and and overdue payments
Forge Request
Using curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiDatoriiToti.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]'
Response Structure
Click to see the response
1{
2 "1": {
3 "status": "ok",
4 "id_ap": "[AP-ID]",
5 "id_chit": "[RECIP-ID]",
6 "id_dat": "[OWNED-ID]",
7 "suma": "[AMOUNT]",
8 "flag": "[OWNED-FLAG]",
9 "luna": "[YYYY]-[MM]",
10 "tip": "[TYPE]",
11 "id_fond": "[ID]",
12 "titlu": "[TITLE]",
13 "nivel_restanta": "[OWNED-LEVEL]"
14 }
15}
Reject Response
Click to see the response
1{
2 "1": {
3 "status": "nologin"
4 }
5}
AjaxGetPlatiDatorii
This method will return a json with all entrys from the money owned and and overdue payments
Forge Request
Using curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiDatorii.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]'
Response Structure
Click to see the response
1{
2 "1": {
3 "status": "ok",
4 "id_chit": "[RECIP-ID]",
5 "id_dat": "[OWNED-ID]",
6 "suma": "[AMOUNT]",
7 "flag": "[OWNED-FLAG]",
8 "luna": "[YYYY]-[MM]",
9 "tip": "[TYPE]",
10 "id_fond": "[ID]",
11 "titlu": "[TITLE]"
12 }
13}
Reject Response
Click to see the response
1{
2 "1": {
3 "status": "nologin"
4 }
5}
AjaxGetPlatiChitante
This method will return a json all entries in the payment history
Forge Request
Using curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiChitante.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]'
Response Structure
Click to see the response
1{
2 "1": {
3 "status": "ok",
4 "id_chit": "[RECIP-ID]",
5 "id_cont": "[CONT-ID]",
6 "luna": "[YYYY]-[MM]",
7 "numar": "[PAYMENT-NR]",
8 "data": "[YYYY]-[MM]-[DD]",
9 "descriere": "[DESC]",
10 "suma": "[AMOUNT]",
11 "id_user": "[USR-ID]"
12 }
13}
Reject Response
Click to see the response
1{
2 "1": {
3 "status": "nologin"
4 }
5}