# InvalidIavToken Error

**URL:** <https://discuss.dwolla.com/t/invalidiavtoken-error/4675>\
**Category:** API Support\
**Created:** [February 14, 2018, 2:26pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675 "2018-02-14T14:26:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![apuzinio](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@apuzinio](https://discuss.dwolla.com/u/apuzinio)\
**Post date:** [February 14, 2018, 2:26pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675/1 "2018-02-14T14:26:49Z")

</div>

Hi,

New to Dwolla API. Following instructions from [https://developers.dwolla.com/guides/transfer-money-between-users/attach-verified-bank.html](https://developers.dwolla.com/guides/transfer-money-between-users/attach-verified-bank.html).

I have copied the code from your example and replaced with generated IAV tokens several times. However, I consistently get the following error in javascript console.  
Error: {“code”:“InvalidIavToken”,“message”:“Invalid IAV token.”} – Response: undefined

The IAV flow does not launch.

Any thoughts on what I am doing wrong?

Thanks!

---

<div class="post-metadata">

**Author:** ![spencer](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/spencer/32/2143_2.png) [@spencer](https://discuss.dwolla.com/u/spencer)\
**Post date:** [February 14, 2018, 7:21pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675/2 "2018-02-14T19:21:53Z")

</div>

@apuzinio, Are you able to provide any of your code where you’re calling the function within dwolla.js to initiate the IAV flow? My assumption is that you’re calling this multiple times and it’s invalidating the IAV token generated from your server.

---

<div class="post-metadata">

**Author:** ![apuzinio](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@apuzinio](https://discuss.dwolla.com/u/apuzinio)\
**Post date:** [February 15, 2018, 3:01pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675/3 "2018-02-15T15:01:27Z")

</div>

Hi Spencer, thanks for getting back to me.

Link to html/javascript.  
[https://s3-us-west-2.amazonaws.com/gildage.com/AddVerifiedAccount.html](https://s3-us-west-2.amazonaws.com/gildage.com/AddVerifiedAccount.html)

This should be identical to what you have in the tutorial docs. From the console it looks like I am only invoking the IAV flow once (the message I posted earlier).

Appreciate any guidance you can provide. Thanks!

---

<div class="post-metadata">

**Author:** ![spencer](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/spencer/32/2143_2.png) [@spencer](https://discuss.dwolla.com/u/spencer)\
**Post date:** [February 15, 2018, 4:33pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675/4 "2018-02-15T16:33:07Z")

</div>

Thanks for the link @apuzinio, After refreshing it doesn’t appear that the value you have set for iavToken is changing. Are you going back to the server to generate a new IAV token every time dwolla.iav.start() is called?

---

<div class="post-metadata">

**Author:** ![apuzinio](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@apuzinio](https://discuss.dwolla.com/u/apuzinio)\
**Post date:** [February 15, 2018, 6:29pm UTC](https://discuss.dwolla.com/t/invalidiavtoken-error/4675/5 "2018-02-15T18:29:09Z")

</div>

I am.updating the IAV token value every time by calling the API with curl. Still trying to get the basic flow working so this is just an example similar to your tutorial docs. thanks!
