# Validation on Account Number of Receive-ony customer

**URL:** <https://discuss.dwolla.com/t/validation-on-account-number-of-receive-ony-customer/5447>\
**Category:** Customers\
**Created:** [December 10, 2019, 2:56am UTC](https://discuss.dwolla.com/t/validation-on-account-number-of-receive-ony-customer/5447 "2019-12-10T02:56:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bistasulove](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/bistasulove/32/2262_2.png) [@bistasulove](https://discuss.dwolla.com/u/bistasulove)\
**Post date:** [December 10, 2019, 2:56am UTC](https://discuss.dwolla.com/t/validation-on-account-number-of-receive-ony-customer/5447/1 "2019-12-10T02:56:48Z")

</div>

Hi,

I see that Dwolla throws invalid parameter error when I give an exceptionally long account number while adding a bank account for the receive-only customer. How long can be an Account number for which Dwolla wouldn’t throw any error?

Thanks and Regards,  
Sulove

---

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [December 10, 2019, 3:35pm UTC](https://discuss.dwolla.com/t/validation-on-account-number-of-receive-ony-customer/5447/2 "2019-12-10T15:35:05Z")

</div>

Hi @bistasulove,

When attaching a bank account as a funding-source to a Customer, the Account number is validated to check if it is a numeric string of `4-17` digits.

Similarly, the Routing number is also checked to be `9` digits. The validation of the Routing number also includes a checksum – the first two digits of the routing number must fall within the range “01” through “12”, or “21” through “32”.

Hope that helps! Please find more information in our [API Docs](https://docs.dwolla.com/#create-a-funding-source-for-a-customer) and let us know if you come across any questions! 🙂
