--- DEBUG: Raw Loandisk API Response (from loandisk_api.php) ---
URL: https://api-main.loandisk.com/22112/27529/borrower/from/1/count/1000
HTTP Code: 200
Headers:
HTTP/2 200 
date: Wed, 09 Sep 2026 05:34:41 GMT
content-type: application/json
server: nginx
vary: Accept-Encoding
set-cookie: PHPSESSID=v91irog33vd33ehlq8esaspkn9; expires=Thu, 10 Sep 2026 05:34:41 GMT; Max-Age=86400; path=/; secure; HttpOnly; SameSite=Lax
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: 27529, Page: 1

Fetching 1000 borrowers from Loandisk...

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

Moving to the next branch in 2 seconds...