Webhook to call REST API https://b24-vs4xys.bitrix24.eu/rest/353/muwv8afa56aup4v9/ URL https://b24-vs4xys.bitrix24.eu/rest/353/muwv8afa56aup4v9/crm.contact.update.json Member ID UF_CRM_1746831097/ Tally T&C / Dis UF_CRM_1746927529/ Tally Date Submitted UF_CRM_1746927585/ /home/belugadev/belugacore/auth/beluga_connect.php /home/belugadev/belugacore/auth/beluga_pdo_connect.php /home/belugadev/belugacore/dbConnect/mysql.php /home/belugadev/belugacore/overrides/session_to_db.php /home/belugadev/belugacore/php/browser.php /home/belugadev/belugacore/cleanse.php /home/belugadev/belugacore/environment.php /home/belugadev/belugacore/json.php /home/belugadev/belugacore/jwt.php /home/belugadev/belugacore/session.php /home/belugadev/belugacore/templates.php /home/belugadev/public_html/BAA-AMS/Beluga_aequitas_Association_Currency_Tally_Webform.html /home/belugadev/public_html/BAA-AMS/error.log /home/belugadev/public_html/BAA-AMS/admin_reports/admin_report.html /home/belugadev/public_html/BAA-AMS/admin_reports/admin_report.php /home/belugadev/public_html/BAA-AMS/admin_reports/update_paid_date.html /home/belugadev/public_html/BAA-AMS/admin_reports/update_paid_date.php /home/belugadev/public_html/BAA-AMS/assets/ /home/belugadev/public_html/BAA-AMS/BAA_AMS_full_package/ /home/belugadev/public_html/BAA-AMS/images/ /home/belugadev/public_html/BAA-AMS/includes/inventory.tally.php /home/belugadev/public_html/BAA-AMS/includes/logger.php /home/belugadev/public_html/BAA-AMS/sql/inventory.sql /home/belugadev/public_html/BAA-AMS/sql/submissions_log.sql /home/belugadev/public_html/BAA-AMS/sql/tally.sql /home/belugadev/public_html/BAA-AMS/sql/tally_submissions.sql /home/belugadev/public_html/BAA-AMS/test_flow.sh/test_flow.php /home/belugadev/public_html/BAA-AMS/test_flow.sh/test_flow.sh /home/belugadev/public_html/BAA-AMS/webhooks/bitrix-webhooks.txt /home/belugadev/public_html/BAA-AMS/webhooks/bitrix24_update_contact.php /home/belugadev ├── belugacore/ │ ├── auth/ │ │ └── beluga_connect.php │ │ require_once 'belugacore/dbConnect/mysql.php'; │ │ │ ├── dbConnect/ │ │ └── mysql.php │ │ (your PDO wrapper) │ │ │ └── php/ │ ├── browser.php │ ├── session.php │ └── templates.php │ (all loaded by bootstrap.php) /public_html/ ├── bootstrap.php │ require_once 'belugacore/php/session.php'; │ require_once 'belugacore/auth/beluga_connect.php'; │ require_once 'belugacore/php/browser.php'; │ require_once 'belugacore/php/templates.php'; │ require_once 'selectlists.php'; │ (so this lives in the BAA‑AMS root) │ ├── selectlists.php │ (your helper list definitions; loaded by bootstrap.php) │ /public_html/BAA-AMS/ ├── Beluga_Aequitas_Association_Currency_Tally_Webform.html │ • (your main form page; the JS in it does │ fetch('includes/inventory_tally.php'…) and │ fetch('includes/logger.php'…)) /public_html/BAA-AMS/│ ├── admin_reports/ │ ├── admin_report.html │ └── admin_report.php │ • (your back‑office reports—no code‑path dependencies) │ ├── includes/ │ ├── inventory_tally.php │ │ require_once __DIR__ /home/belugacore/dbConnect/mysql.php'; │ │ (so it POSTs here from the form, and then includes the core connector) │ │ │ └── logger.php │ (the JS calls this on errors: fetch('includes/logger.php',…)) │ │ ├── sql/ │ ├── inventory.sql │ ├── submission_logs.sql │ (import these into your database via `SOURCE …`) │ ├── tally.sql │ ├── tally_submissions.sql │ ├── test_flow.sh/ │ ├── test_flow.ph │ ├── test_flow.sh │ ├── webhooks │ ├── bitrix‑webhooks.txt │ │ (just docs; drop in root or a /docs folder) │ │ │ └── bitrix24_update_contact.php │ (called via cURL or JS after tally is saved) │ └── error_log (this file will be written to by both inventory_tally.php and logger.php; keep it alongside those scripts in `/includes/`)