Hi @IshanM Ishan,
Please refer to the explanation below.
“When I clicked on ‘Process bank transfers’ button in dashboard, I received “bank_transfer_completed” webhook.”
- You were correct in using this button to complete the transfers. The Sandbox environment does not replicate any ACH processes, so a pending transfer will not clear or fail automatically after a few business days as it would in production. It will simply remain in the pending state indefinitely.
“When I again clicked on ‘Process bank transfers’ button in dashboard, I received following webhooks:”
- It is important to note that a single API request can trigger multiple webhooks to be fired. Webhooks are sent asynchronously and are not guaranteed to be delivered in order. We recommend that applications protect against duplicated events by making event processing idempotent.
- In this scenario, yes. You can also find meanings to each webhook event here
- The
transfer_createdwebhook means the funds are moving from a verified funding source of Master Account in this scenario, but can come from a Dwolla balance and not necessarily from or to a funding source. It can be triggered in a Dwolla balance to balance scenario. This is the purpose and difference betweentransfer_createdandbank_transfer_created. For this question as well as 5 and 7, you can also check out this reply here where it explains receiving webhooks for both parties involved in the transaction (User A - Source & User B - Destination), as well as how to reconcile webhooks. - In this scenario the
customer_transfer_createdwebhook was triggered when the funds to the verified funding source of the master account was sent to the customer. When funds are successfully transferred, the webhookcustomer_transfer_completedwas triggered. - Yes, this is correct.
-
transfer_completedindicates that a transfer has cleared successfully. Represents funds clearing either to or from a Dwolla Master Account’sbalanceorbank. In your scenario it cleared from the Master account’s funding source. - Yes, this indicates a successful transfer.
- To relate webhooks to one payment flow you can make a call to
customers/{id}to retrieve their e-mail addresses (or to your own database) so that you can send your notification message. Resource ids are the id of the resource associated with the event. Please refer to the different event topics in the api docs.