Now that you’ve created a Customer and associated its funding source, you are close to being able to initiate your first transfer. The transfer requires the following information:
Dwolla uses URLs to represent relations between resources. Therefore, you’ll need to provide the full URL of the funding source and recipient.
In order to find your Customer’s available bank and balance funding sources, you will need to first retrieve the funding sources from your Customer, via the API.
var customerUrl =
"https://api-sandbox.dwolla.com/customers/5b29279d-6359-4c87-a318-e09095532733";
dwolla
.get(`${customerUrl}/funding-sources`)
.then((res) => res.body._embedded["funding-sources"][0].name); // => 'Jane Doe’s Checking'
In order to find your Master Account’s available bank funding sources, you will need to first retrieve the funding sources from your Master Account, via the API. You’ll need your account URL which can be retrieved by calling the Root of the API.
raw
)var accountUrl =
"https://api-sandbox.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254";
dwolla.get(`${accountUrl}/funding-sources?removed=false`).then(function (res) {
res.body._embedded["funding-sources"][0].name; // => 'ABC Bank Checking'
});
When the funding sources are successfully retrieved, you will receive a 200
HTTP response with the details of the funding sources. After retrieving the funding sources, we recommend storing the full URL for future use as it will be referenced when creating the transfer to this end user’s bank account.
Use sandbox environment to test API requests.
All funds transfers made using the Dwolla Platform are performed by a financial institution partner, and any funds held in a Dwolla Balance are held by a financial institution partner. Learn more about our financial institution partners.