Webhooks with Transfer


(Justin Thomas) #1

Hi there,

I’m working on integrating Dwolla with an application I’m building. I have the transfer mechanism working and fired off a test transfer last night that seemed to go okay. I set up a webhook subscription prior to initiating the transfer and expected to see some sort of activity, but did not. I’m trying to figure out what I’m missing.

The webhook subscription:
https://api.dwolla.com/webhook-subscriptions/f59bd9dd-2d15-45bb-90e1-59dcd6c52bc5

The transfer that should have triggered some sort of “transfer_created” or “bank_transfer_created”:
https://api.dwolla.com/transfers/f0d7318a-ff4b-e711-8100-02c4cfdff3c0

Right now, my endpoint (Sinatra) should just print out the body of the POST that’s received:

post '/dwolla-webhook' do
  puts "WEBHOOK: #{request.body.read}"
  redirect '/home'
end

I tested with my own POST request and see the data I’d expect. I haven’t seen anything from Dwolla, however.

Thanks in advance for any advice you can provide.

-Justin


(Spencer Hunter) #2

Hi @justindthomas, Sorry for the delay in response. A couple things you can check. 1) If you fetch your list of webhooks fired, you can see if there are any attempts to your subscribed url. 2) double check to see if your app has a valid refresh token issued for the account you wish to receive webhook notifications for.