'Stripe connect API saying balance is -1, while dashboard says it's 0?

I'm trying to get the balance of a Stripe connect account with the following code: enter image description here

I added some detailed logging since the balance returned is different than what is on my dashboard. When this code runs, it says the account has $-1.00 in value. The thing is, this is for a brand new account. The dashboard interface shows the following:

enter image description here

For the API response, it shows this output:

enter image description here

What am I doing wrong here, and why is the balance appearing differently via the API than what's displayed on the dash?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source