Modify Account Balance Externally

Are you sure these are additional header and not part of the data?

This function is the main one used in my PMS intergration (see below);

And my api key is passed as json in the data variable.
The way you have formatted looks like json data rather than header…