By following the API I am constantly getting either by using their sandbox credentials or mine, to an existing customer.
{
“code”: “InvalidScope”,
“message”: “Missing or invalid scopes for requested endpoint.”
}
I am using node.js API ( “dwolla-v2”: “^3.4.0”,)
the request sample is
const token = await dwollaClient.auth.client();
return token.post(customers/${customerId}/funding-sources, {
“name”: name,
“type”: “virtual”,
“bankAccountType”: “checking”,
});
I am able to create a normal funding source if I change the body to
const token = await dwollaClient.auth.client();
return token.post(customers/${customerId}/funding-sources, {
“routingNumber”: “222222226”,
“accountNumber”: “123456789”,
“bankAccountType”: “checking”,
“name”: “My Bank”
});
Is something wrong that I am doing? Do we need to ask an additional permission to Dwolla?
Hi @Marcos_Silva – Yes! You’re able to use VANs in Sandbox, but we need to enable it for your account.
We can do one of two things:
Enable VANs for your current Sandbox account. Doing so will cause new Customers to be created on a different financial holdings location than the current one. This means you can only transact with and create VANs for new Customers. Previous customers will need to be migrated over to the new holdings, which requires API calls to a different endpoint. You might want too choose this route if you are already live in Production and want to test the VANs functionality in Sandbox before you roll it out to Prod. One thing to note if you go this route is that the VANs setting cannot be reverted once enabled.
You can create a new Sandbox account, and before you create any customers in it, we can enable VANs for your account. Doing so will eliminate the need to do the extra migration API calls. You might want to choose this route if you aren’t live in production yet and are building out the integration for the first time.
Let me know which path you’d like to go forward with and please share the Sandbox account ID or email!
We plan to use VAN in our existing production environment in some specific scenarios. My main question for the item 1: if we migrate sandbox and later production to this new holdings, are we still able to normally work with Plaid and create the VAN funding source only in our specific cases or we will need to use VAN to all funding sources that we currently have and also for the new ones?
Yes, you’ll still be able to do those. The only difference it makes is that your Main Dwolla account and all newer verified customers’ Dwolla Balance funding-source will be held under a different holding account from the older customers. So cross-transfers between the two won’t work. The older customers will need to be migrated to the new holding locations via an agreement (shared with you as personal message).
Also, VANs are now enabled in your Sandbox account! Let us know if you run into any questions during testing!
i am able to verify that the post to agreements gives the 409 (expected for the new customer) but now once I try to create the new VAN for my sandbox customer, I receive the new error with “Virtual account numbers are not enabled for this account.”
is anything else missing or should I have another thing enabled for my customer?