WordPress Bloomerang

I’ve setup an API in Postman to run a query using the Bloomerang API. Everything works in Postman, but I get no results when I put the code into my WordPress Form. I got the code out of Postman, and put it into WordPress and the only code that works is the XHR (everything else says headers haven’t been sent.) I get a 200 ok in WordPress, but no results. Am I using the wrong code to get the data?
Excluding the trigger and header API, here’s my code: