How is it possible to reproduce this error in real life (with production versions of Plaid and Dwolla)? On the other hand, is the reason that I’m getting this error with Plaid Link due to the fact that the Sandbox version of Plaid has only a single “bank?”
What is the best way to catch this error so I can gracefully handle it?
You can reproduce this error in production by adding a bank with the same routing number + account number for the same customer. I think you’re right that this error is occurring because Plaid only has one bank in Sandbox.
We also return a link to the funding source that already exists in err.body._links, so you could use that to figure out the funding source that already exists.
Hi @Hadil_Sabbagh, I believe not. Plaid Sandbox only returns two bank accounts - savings and checking with preset RN // AN. You can test adding banks to Dwolla Sandbox by removing a funding-source, and attaching another one again. Just for information, by default, the bank limit is 6 per Customer and 2 per Master Account.
Please let me know if you have any questions, or we can help with anything!
Is this limit of 6 per customer in sandbox or prod. ? After creating 2 accounts, checking and savings, in sandbox with an institution, like BoA, I get the same error above if I want to create 2 more accounts in sandbox with another institution, for example with Chase.
Also, we have 3 users in sandbox. If 1 test user creates a checking & savings account does that mean that test user 2 and 3 can’t create accounts in sandbox?
Hi @xro – those limits are for both Sandbox and Prod. The two accounts (checking and savings) from Plaid are the same across all banking institutions. That’s why the third bank account creation will fail due to there only being two unique test bank accounts returned by Plaid.
The uniqueness of bank accounts is enforced on a per Customer account basis. Multiple Customers in your platform may have the same bank account.
Hope that helps! Let me know if you have any questions!