Unable to create Funding Sources using Plaid token


(Bhagyashri Kaiche) #1

Hi,

We are integrating Dwolla with Plaid API .

We got Plaid access-sandbox-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx access_token. Using this access_token we have made following request of Dwolla ApI to create funding source in Dwolla using rest api.

EndPoint : https://api-sandbox.dwolla.com/customers/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/funding-sources

Method : Post

Header :

        Content-Type: application/vnd.dwolla.v1.hal+json

        Accept: application/vnd.dwolla.v1.hal+json

        Authorization: Bearer xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Request Body :

        {
          "plaidToken": "access-sandbox-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
           "name": "Test"
       }

But we got following respose:

_{“code”:“ValidationError”,“message”:“Validation error(s) present. See embedded errors list for more details.”,"_embedded":{“errors”:[{“code”:“Invalid”,“message”:“Token is invalid.”,“path”:"/plaidToken","links":{}}]}}


(Spencer Hunter) #2

Hi @Bhagyashri_Kaiche, what was the bank account type you used to connect via Plaid Link? Dwolla only supports checking and savings accounts at this time. I’ve seen this error returned when a test money market account or other account type is attempted to be connected.


(Bhagyashri Kaiche) #3

Hi @spencer,

We have tried to create public_key from one of bank saving account on plaid and then exchange access_key.

https://paste.pics/9f1c72b0204db9c72443c95fb7f2364b

Using this access_key, we have executed above request on Dwolla to create a Funding source .
But again we have got the same error.


(Spencer Hunter) #4

Ah, I see the issue. It looks like you are passing in an access token when Dwolla requires a processor token. I’d recommend taking a look at step 4 in this guide for more information on obtaining a processor token.