Add customer funding-source probem

When i go to add a funding source with manual routing/account number and then initiate micro deposits i get

CODE: NotFound Message: The requested resource was not found.

the funding-source creates and responds but pulling the customers funding-sources doesnt show it. then if i go into my actual sandbox account the funding-source shows there but not under the customer them self.

This is what im doing:

Creating a Post message with the customers bank info in it
POST
api-sandbox.dwolla.c/customers/8a6aff8a-54c8-4509-be7f-0c2f8b2ffc07/funding-sources

this is the response i get:
{"_links":{“self”:{“href”:“api-sandbox.dwolla.c/customers/8a6aff8a-54c8-4509-be7f-0c2f8b2ffc07/funding-sources”,“type”:“application/vnd.dwolla.v1.hal+json”,“resource-type”:“funding-source”},“customer”:{“href”:“api-sandbox.dwolla.com/customers/8a6aff8a-54c8-4509-be7f-0c2f8b2ffc07",“type”:“application/vnd.dwolla.v1.hal+json”,“resource-type”:“customer”}},"_embedded":{"funding-sources”:}}

then i attempt microdeposit initiate
api-sandbox.dwolla.c/funding-sources/897b7a3c-2a95-4985-904b-33dd5570d38a/micro-deposits

NotFound The requested resource was not found.

then when i login to sandbox i click on my customer im trying to add the funding-source for and it shows no funding sources. so I go up to top right my account -> Funding Sources and it shows there instead of under my customer

what am i doing wrong

NOTE: I had to remove https:// and change .com to .c to get this posted becasue my new user status limits me to 2 links per post. the actual url is the sand-box url at the beginning those are right even though i had to modify them to post this question

Hi @dustinr1985, Im showing in our logs that the POST was to https://api-sandbox.dwolla.com/funding-sources which created this particular bank. Here’s the request:

2020-05-14 22:18:22,677 | id=c2f7e283-5c50-4da9-9873-c7c2c832b8ea | method=POST | statusCode=201 | url=http://api-sandbox.dwolla.com/funding-sources | duration=377ms | ipAddress=107.180.92.55 | userAgent= | requestStartTime=2020-05-14T22:18:22.300Z | createdResource=/funding-sources/897b7a3c-2a95-4985-904b-33dd5570d38a | cfRayId=5937fe9f8e63e77f-ATL'

POSTing to this endpoint with your access token will attach the bank to your Parent Dwolla Account, which manages the customer records it creates.

When you’re making this request, are you passing in the customer ID path (/customers/8a6aff8a-54c8-4509-be7f-0c2f8b2ffc07) from somewhere and maybe that’s not getting passed in properly?

Im sending via asp.net with httpclient postasync. last night i realized the api code i followed wouldnt work for dwolla, i got it working now

this is what i had:
var url = Dwolla.ApiBaseAddress + “/customers/” + account.DwollaID;
client.BaseAddress = new Uri(url);
client.DefaultRequestHeaders.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(“application/vnd.dwolla.v1.hal+json”));
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(“Bearer”, Dwolla.AppAccessToken);
var result = await client.PostAsync("/funding-sources", new StringContent(jsonSend, Encoding.UTF8, “application/vnd.dwolla.v1.hal+json”));

versus this is what actually works:
var url = Dwolla.ApiBaseAddress + “/customers/” + account.DwollaID + “/funding-sources”;
client.BaseAddress = new Uri(url);
client.DefaultRequestHeaders.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue(“application/vnd.dwolla.v1.hal+json”));
client.DefaultRequestHeaders.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue(“Bearer”, Dwolla.AppAccessToken);
var result = await client.PostAsync("", new StringContent(jsonSend, Encoding.UTF8, “application/vnd.dwolla.v1.hal+json”));

incase anyone else has to do this in asp.net sees this

1 Like