We are storing references to transfer activity in our own database in order to provide detailed transfer history for users in our application. In order to provide useful data, we need to be able to identify the source and destination, but the webhook data does not distinguish which is which. Currently when a new transfer is initiated, we assume that the first webhook event is regarding the source, and the second is the destination, but because the webhooks fire only 50ms apart, and we have a database write in between, there is a race condition.
What is Dwolla’s best recommendation for responding to transfer_created webhook events to create a complete picture of the transfer? Is there a better approach?