Description
Calling the /accounts/v1/account/list endpoint via the
Accounts.php list_accounts() function returns an Unhandled API exception.
Expected Behavior
We should receive a list of all subaccounts associated with this account
Actual Behavior
This call returns an Unhandled API exception
Steps to Reproduce
- Have a test account which has a parent account and at least one subaccount
- Using this API Client, attempt to call the /accounts/v1/account/list endpoint via the list_accounts()
I suspect this issue will also occur for other endpoints which pass in an empty list in the request bod.
Workarounds
checking out an older version of this repo before commit #38 will work.