--- DEBUG: Raw Loandisk API Response (from loandisk_api.php) ---
URL: https://api-main.loandisk.com/22112/26377/borrower/from/1/count/1000
HTTP Code: 200
Headers:
HTTP/2 200 
date: Fri, 12 Jun 2026 15:02:12 GMT
content-type: application/json
server: nginx
vary: Accept-Encoding
set-cookie: PHPSESSID=u1p63j79iqfm9u43pddpuft8v4; expires=Sat, 13 Jun 2026 15:02:12 GMT; Max-Age=86400; path=/
expires: Thu, 19 Nov 1981 08:52:00 GMT
cache-control: no-store, no-cache, must-revalidate
pragma: no-cache
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE
accept: application/json
accept-charset: utf-8
access-control-allow-credentials: true
access-control-max-age: 3600
content-encoding: gzip

Body:
{
    "error": {
        "type": "client",
        "code": "11",
        "message": "Wrong access credentials"
    },
    "http": {
        "code": 200,
        "message": "OK"
    }
}
--- DEBUG END ---

Starting Deleted Borrower Scan

This script is searching for borrowers permanently deleted from Mailchimp.

Scanning Branch ID: 26377, Page: 1

Fetching 1000 borrowers from Loandisk...

✅ No more borrowers found for this branch. Scan finished for branch 26377.

Moving to the next branch in 2 seconds...