Notice: Undefined variable: raw_loandisk_branch_id in /home/eyecue/rlg.eyecue.co.bw/sync1.php on line 30

Starting Loandisk to Mailchimp Sync

Using Loandisk API URL: https://api-main.loandisk.com

Fetching borrowers from branch ID: with public key: 22112

Fetching Loandisk borrowers from page 1...


--- DEBUG: Raw Loandisk API Response (from loandisk_api.php) ---
URL: https://api-main.loandisk.com/22112//borrower/from/1/count/50
HTTP Code: 404
Headers:
HTTP/2 404 
date: Fri, 12 Jun 2026 15:04:24 GMT
content-type: text/html
server: nginx
vary: Accept-Encoding
content-encoding: gzip

Body:
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>
--- DEBUG END ---

--- Debug: Raw Loandisk API Response (Page 1) ---

<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

--- End Debug ---

❌ Error decoding JSON response from Loandisk API on page 1: Syntax error

Raw Loandisk Response (Page 1):
<html>
<head><title>404 Not Found</title></head>
<body>
<center><h1>404 Not Found</h1></center>
<hr><center>nginx</center>
</body>
</html>

✅ No borrowers found to sync to Mailchimp. Script finished.