List funding sources for an account
Retrieve a list of funding sources that belong to a main Dwolla Account. By default, all funding sources are returned in the list and can be identified as active or removed via theremoved
attribute.
Pagination
All listing endpoints support cursor-based pagination to traverse through an existing data set. With cursor-based pagination you must always start at the beginning of a list and query your way forward in the data set. Cursor-based endpoints accept thelimit
and cursor
query string parameters.
A limit
is set to control the number of objects that are returned in the response. By default, a limit
is set to 25 objects that are returned and sorted by created
timestamp. Limit can have a max value of 200 objects. The cursor
is a pointer indicating the next item in the data set. The cursor to use for the next page of results is returned in the _links
object where a URL is generated and returned for the next
data set (referenced below). If you omit the cursor
from your request, you will receive the first page of results.ß
It is recommended to use the _links
object in the response which includes the following relational links for paging.
self
link indicates the URL of the resource itself.next
includes the URL to list the next set of objects as defined bylimit
that is set. The absence of anext
URL indicates that you have reached the end of the data set.prev
includes the URL to list the previous set of objects as defined bylimit
. the absence of aprev
URL indicates that you are at the beginning of the data set.
Example HTTP Request
GET https://api.dwolla.com/accounts/{id}/funding-sources?limit=10&cursor={encoded-cursor}
HTTP request
GET https://api.dwolla.com/accounts/{id}/funding-sources
Request parameters
Parameter | Required | Type | Description |
---|---|---|---|
id | yes | string | Account’s unique identifier. |
removed | no | boolean | Filter removed funding sources. Set to false to filter out removed funding sources from list (i.e. - /accounts/{id}/funding-sources?removed=false ) or true to include only removed funding sources. |
correlationId | no | string | A string value to filter on if a correlationId was specified on a funding source. |
HTTP status and error codes
HTTP Status | Message |
---|---|
403 | Not authorized to list funding sources. |
404 | Account not found. |