Create a card funding sources token for dwolla-cards.js #

Dwolla-cards.js is a client-side library that allows you to display a form hosted by Dwolla via an iframe to your Customers in order to add their card funding source by passing details directly to the card service provider. This section details how to create a token that will be sent to the client and used to authenticate the HTTP request asking Dwolla to add a new card funding source.

Refer to our dwolla-cards.js developer guide to learn more about utlizing this single-use card-funding-sources-token to add a card for a Customer.

HTTP Request #


Request parameters #

idyesstringCustomer unique identifier.

HTTP status and error codes #

HTTP StatusMessage
401Application does not have required scopes for creating token.
404Customer not found.

Request and response #

// Using dwolla-v2 -
var customerUrl =

  .then((res) => res.body.token); // => '4e6158394155554b4d74423975727475326a4b4f73436d73616e6c30597a6f61424a7249386545394e7149555533646d55623a41506e693176383545567167454e4d31355563683157675a'

Test in the Sandbox for free today.

Use sandbox environment to test API requests.

Get API Keys
2022 All Rights Reserved
Financial institutions play an important role in our network.

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.