Funding source verification

Instant account verification (IAV)

Instant Account Verification (IAV) gives you the ability to add and verify a Customer’s bank account in a matter of seconds, which is much faster than the multiple days required for micro-deposits to transfer and then be verified by the Customer. Your application will utilize the client-side dwolla.js JavaScript library to render the IAV flow within a container in your application.

  1. This article will walk through IAV functionality using dwolla.js which is only available for Dwolla API integrations. For more information about the Dwolla API, please contact sales.

Step 1: Generate a single-use IAV token for a Customer

To initiate the IAV flow, dwolla.js requires a single-use IAV token for a Customer. Your server initiates a POST request to Dwolla, specifying for which Customer you want to add/verify a bank account. Dwolla will respond with a single-use token which expires an hour after its creation. This IAV token will be sent to the client and used to authenticate the HTTP request asking Dwolla to render the IAV flow.

curl -X POST
\ -H "Content-Type: application/vnd.dwolla.v1.hal+json"
\ -H "Accept: application/vnd.dwolla.v1.hal+json"
\ -H "Authorization: Bearer qe634nV7dIYpYDf3VGZPciziPU2BCboUZ7G7EG8XEyGswKkBV5"
\ ""

HTTP/1.1 200 OK
customer_url = ''

# Using DwollaV2 - (Recommended)
customer = "#{customer_url}/iav-token"
customer.token # => "lr0Ax1zwIpeXXt8sJDiVXjPbwEeGO6QKFWBIaKvnFG0Sm2j7vL"
// Using dwolla-v2 -
var customerUrl = '';

  .then(function(res) {
    res.body.token; // => 'lr0Ax1zwIpeXXt8sJDiVXjPbwEeGO6QKFWBIaKvnFG0Sm2j7vL'
customer_url = ''
customers_api = dwollaswagger.CustomersApi(client)

token = customers_api.get_customer_iav_token(customer_url)
print token['token'] # => 'lr0Ax1zwIpeXXt8sJDiVXjPbwEeGO6QKFWBIaKvnFG0Sm2j7vL'
$customersApi = new DwollaSwagger\CustomersApi($apiClient);

$fsToken = $customersApi->getCustomerIavToken("");
$fsToken->token; # => "lr0Ax1zwIpeXXt8sJDiVXjPbwEeGO6QKFWBIaKvnFG0Sm2j7vL"

Step 2: Include dwolla.js and add container for IAV

We’ll begin the client-side implementation by including dwolla.js in the HEAD of our HTML page. Notice, we are utilizing development version 1 of dwolla.js, alternatively you can include the minified version of <script src=""></script>.

<script src=""></script>

Next, add the container to the body of the page where you want to render the IAV flow. Note: This container is responsive, meaning content is resized appropriately across all screen resolutions and devices.

<div id="mainContainer">
    <input type="button" id="start" value="Add Bank">

<div id="iavContainer"></div>

Step 3: Configure and call JavaScript function to start IAV

Now that you have initialized dwolla.js on your page you can configure and create the function that will call dwolla.iav.start(). For simplicity of this example, use jQuery and call the function to start IAV when the Customer clicks the “Add Bank” button on your page. To test IAV in the sandbox environment you will use the dwolla.configure helper function and pass in the value of sandbox. As you can see below, dwolla.iav.start takes three arguments: the iavContainer element where IAV will render, a string value of the single-use IAV token, and a callback function that will handle any error or response.

<script type="text/javascript">
  $('#start').click(function() {
    var iavToken = '4adF858jPeQ9RnojMHdqSD2KwsvmhO7Ti7cI5woOiBGCpH5krY';
    dwolla.iav.start(iavToken, {
      container: 'iavContainer',
      stylesheets: [
      microDeposits: false,
      fallbackToMicroDeposits: false
    }, function(err, res) {
      console.log('Error: ' + JSON.stringify(err) + ' -- Response: ' + JSON.stringify(res));

In order to facilitate testing IAV in the Sandbox, we allow you to specify any value in the IAV text field inputs to proceed through the flow.

Step 4: Handle the error or response

The callback function (err, res) allows you to determine if there is an error with the request (i.e. InvalidIavToken) or if the response was successful.

  • If there is an error: generate a new IAV token and re-attempt the IAV flow.
    • Example: {code: "InvalidIavToken", message: "Invalid IAV token." }
  • If successful: You will receive a JSON response that includes a link to the newly created and verified funding source. You can then pass this value to either initiate a transfer or store the created resource in your database to be used later.
    • Example: {"_links":{"funding-source":{"href":""}}}


Production: Operational

Financial institutions play an important role in the Dwolla network.

Dwolla, Inc. is an agent of Veridian Credit Union and all funds associated with your account in our network are held in one or more pooled accounts at Veridian Credit Union. These funds may not be eligible for share insurance by the National Credit Union Share Insurance Fund. Dwolla, Inc. is the operator of a software platform that communicates user instructions for funds transfers to Veridian Credit Union.