@shreya@spencer
I need to get funding source balance and i am using below code in php
$fundingSourceUrl = 'https://api-sandbox.dwolla.com/funding-sources/c2eb3f03-1b0e-4d18-a4a2-e552cc111418';
$fsApi = new DwollaSwagger\FundingsourcesApi($apiClient);
$fundingSource = $fsApi->getBalance($fundingSourceUrl);
and I am getting {"code":"Forbidden","message":"The supplied credentials are not authorized for this resource."}
Please note that I am requesting this for verified customer. Please suggest. Also, I did not find any api link to get list of transactions for verified customers.
Thanks,
Vikas
Hi @vikas – Are you retrieving the balance of a Dwolla Balance of a Customer in your account? The above ID (c2eb3f03-1b0e-4d18-a4a2-e552cc111418) belongs to one of our Accounts, which is likely why the error is being thrown.
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
4
Hi @vikas , The funding source ID you shared represents the type bank, which we do not support checking the balance amount within our API. The balance endpoint in our API /funding-sources/{id}/balance is only used for retrieving the Dwolla balance which exists for Verified Customer Records. If you need to check the bank balance amount of a user’s connected checking or savings account, I’d recommend taking a look at a third party bank aggregation provider such as Plaid, MXData, Finicity, etc.
Hi @vikas – you can find the Dwolla Balance of a Customer by using the List funding-sources for a Customer endpoint. When you parse through the list, the item with "type": "balance" is the Balance funding-source.
You can find more information about Dwolla Balance in the resource that Spencer linked above! (Dwolla Balance)
@shreya
Regarding the list of transaction, api returns amount, currency and link of source customer. Please let me know if I will have to get name of the customer through their source customer URL or Dwolla API has another option so that we can get the list of transaction along with customer name?