After obtaining an access token, you can fetch your accounts list of funding sources. See below for an example of the request and response. Your account url can be found by calling the root of the API with your access token.
Request:
GET https://api-uat.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254/funding-sources?removed=false
Accept: application/vnd.dwolla.v1.hal+json
Authorization: Bearer {{accessToken}}
Response:
{
"_links": {
"self": {
"href": "https://api-uat.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254/funding-sources?removed=false",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "funding-source"
}
},
"_embedded": {
"funding-sources": [
{
"_links": {
"self": {
"href": "https://api-uat.dwolla.com/funding-sources/707177c3-bf15-4e7e-b37c-55c3898d9bf4",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "funding-source"
},
"account": {
"href": "https://api-uat.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "account"
}
},
"id": "707177c3-bf15-4e7e-b37c-55c3898d9bf4",
"status": "verified",
"type": "bank",
"name": "First Midwestern Bank",
"created": "2014-07-09T20:39:37.000Z",
"removed": false,
"channels": [
"ach"
]
},
{
"_links": {
"self": {
"href": "https://api-uat.dwolla.com/funding-sources/b268f6b9-db3b-4ecc-83a2-8823a53ec8b7",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "funding-source"
},
"account": {
"href": "https://api-uat.dwolla.com/accounts/ad5f2162-404a-4c4c-994e-6ab6c3a13254",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "account"
},
"with-available-balance": {
"href": "https://api-uat.dwolla.com/funding-sources/b268f6b9-db3b-4ecc-83a2-8823a53ec8b7",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "funding-source"
},
"balance": {
"href": "https://api-uat.dwolla.com/funding-sources/b268f6b9-db3b-4ecc-83a2-8823a53ec8b7/balance",
"type": "application/vnd.dwolla.v1.hal+json",
"resource-type": "balance"
}
},
"id": "b268f6b9-db3b-4ecc-83a2-8823a53ec8b7",
"status": "verified",
"type": "balance",
"name": "Balance",
"created": "2014-07-09T20:39:33.000Z",
"removed": false,
"channels": []
}
]
}
}
In the example above you can see that I have two funding sources attached to my Dwolla account. One funding source is of type balance and one is of type bank. If you’re wanting to pay from your Dwolla account balance then specify https://api-uat.dwolla.com/funding-sources/b268f6b9-db3b-4ecc-83a2-8823a53ec8b7 as your source href. If you want to payout directly from an attached bank account, specify https://api-uat.dwolla.com/funding-sources/707177c3-bf15-4e7e-b37c-55c3898d9bf4 as your source href.