Adding funding source with Plaid link

Hi,

I’m going through the document to initiate an ACH debit. I’m going through the steps and I can’t seem to create a funding source correctly.

  1. Create customer:

     http POST https://api-sandbox.dwolla.com/customers \
     Content-Type:application/vnd.dwolla.v1.hal+json \
     Accept:application/vnd.dwolla.v1.hal+json \
     Authorization:"Bearer xxx" \
     firstName="Jane" \
     lastName="Doe" \
     email="janeDoe@nomail.net" \
     ipAddress="99.99.99.99"
    
  2. Add funding source:

     http POST https://api-sandbox.dwolla.com/customers/5323bef8-f160-4b21-961f-ff9d9f95ad72 \
     Content-Type:application/vnd.dwolla.v1.hal+json \
     Accept:application/vnd.dwolla.v1.hal+json \
     Authorization:"Bearer xxx" \
     plaidToken=public-sandbox-xxx \
     name="Jane Doe’s Checking"
    
  3. Ensure funding source is linked to customer:

     http GET https://api-sandbox.dwolla.com/customers/5323bef8-f160-4b21-961f-ff9d9f95ad72/funding-sources \
     Content-Type:application/vnd.dwolla.v1.hal+json \
     Accept:application/vnd.dwolla.v1.hal+json \
     Authorization:"Bearer xxx"
    

I unfortunately get an empty list below for “funding-sources”:

{
    "_embedded": {
        "funding-sources": []
    },
    "_links": {
        "customer": { ... },
        "self": { ... }
    }
}

Hi @gavnewalkar,

Thanks for posting the steps you took to get to the response, it helps us a lot!

Looks like it’s got to do with the endpoint you’re POSTing to in Step 2. Changing that to the following endpoint should work,

https://api-sandbox.dwolla.com/customers/5323bef8-f160-4b21-961f-ff9d9f95ad72/funding-sources

Would you also be able to ensure that the plaidToken you are passing over to Dwolla is a Dwolla processor_token and not a public_token? In order to create a funding-source in Dwolla, we require the processor_token to be passed in the funding-source creation request. You can check out our documentation and/or Plaid’s Docs for information on how to retrieve the Dwolla processor_token.

Please let us know if you come across any questions!

Hi shreya,

That worked. Thanks for your help!

Glad you got it working! You’re very welcome, Gav!