I’m new to the Dwolla API and am trying to get some basic functionality working in my company’s application. We are currently using the co-branded solution (Account). I am trying to create a simple transfer between 2 users of our application, both of whom have verified funding sources. I have been able to successfully send both users through the OAuth authentication flow, and have correctly obtained account access tokens for each, which were then used to retrieve the respective funding sources. However, when I then try to create a transfer (using the sender’s access_token if that matters), I get a 400 error.
Following the example from https://docsv2.dwolla.com/#initiate-a-transfer, here’s the output for the transfer request (outputted using PHP’s print_r function). This is what I’m sending to $transfersApi->create():
Array ( [_links] => Array ( [source] => Array ( [href] => https://api-uat.dwolla.com/funding-sources/131ffdc1-e914-4828-bd16-c89cec682510 ) [destination] => Array ( [href] => https://api-uat.dwolla.com/funding-sources/626b1108-56be-4f8d-bed6-db712acfc006 ) ) [amount] => Array ( [currency] => USD [value] => 213 ) )
As far as I can tell, the data looks to be in the correct format according to the docs. If someone can help, I’d be grateful. Thank you.
P.S. I haven’t yet added the “fees” object to the above, but am planning to do so next. Is there anything I should be aware of as far as adding that? Thanks.