================================================== Payments ================================================== .. meta:: :description: Payment and liability methods for E-BLOC platform :keywords: documentation, ebloc, payments, liabilities, receipts .. contents:: Table of Contents :depth: 2 :local: 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. .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiAp.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]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getaccessblocscara.png .. :width: 400 .. :alt: getaccessblocscara .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLuna=[YYYY]-[MM]&pIdAp=[AP-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id_asoc": "[AS-ID]", "id_ap": "[AP-ID]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } } AjaxGetPlatiChitanteToti ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This method will return a json with a few entries in the payment history **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiChitanteToti.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]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getaccessblocscara.png .. :width: 400 .. :alt: getaccessblocscara .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLuna=[YYYY]-[MM]&pIdAp=[AP-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id_ap": "[AP-ID]", "id_chit": "[RECIP-ID]", "id_cont": "[CONT-ID]", "luna": "[YYYY]-[MM]", "numar": "[PAYMENT-NR]", "data": "[YYYY]-[MM]-[DD]", "descriere": "[DESC]", "suma": "[AMOUNT]", "id_user": "[USR-ID]", "more": "[0 IF NOT LAST ELSE 1]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } } AjaxGetPlatiDatoriiToti ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This method will return a json with a few entryed from the money owned and and overdue payments **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiDatoriiToti.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]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getaccessblocscara.png .. :width: 400 .. :alt: getaccessblocscara .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLuna=[YYYY]-[MM]&pIdAp=[AP-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id_ap": "[AP-ID]", "id_chit": "[RECIP-ID]", "id_dat": "[OWNED-ID]", "suma": "[AMOUNT]", "flag": "[OWNED-FLAG]", "luna": "[YYYY]-[MM]", "tip": "[TYPE]", "id_fond": "[ID]", "titlu": "[TITLE]", "nivel_restanta": "[OWNED-LEVEL]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } } AjaxGetPlatiDatorii ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This method will return a json with all entrys from the money owned and and overdue payments **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiDatorii.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]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getaccessblocscara.png .. :width: 400 .. :alt: getaccessblocscara .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLuna=[YYYY]-[MM]&pIdAp=[AP-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id_chit": "[RECIP-ID]", "id_dat": "[OWNED-ID]", "suma": "[AMOUNT]", "flag": "[OWNED-FLAG]", "luna": "[YYYY]-[MM]", "tip": "[TYPE]", "id_fond": "[ID]", "titlu": "[TITLE]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } } AjaxGetPlatiChitante ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This method will return a json all entries in the payment history **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPlatiChitante.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]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getaccessblocscara.png .. :width: 400 .. :alt: getaccessblocscara .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLuna=[YYYY]-[MM]&pIdAp=[AP-ID] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id_chit": "[RECIP-ID]", "id_cont": "[CONT-ID]", "luna": "[YYYY]-[MM]", "numar": "[PAYMENT-NR]", "data": "[YYYY]-[MM]-[DD]", "descriere": "[DESC]", "suma": "[AMOUNT]", "id_user": "[USR-ID]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } }