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
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
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
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
3
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:
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