# Workflow of Payment with Webhooks / Events

**URL:** <https://discuss.dwolla.com/t/workflow-of-payment-with-webhooks-events/7685>\
**Category:** API Support\
**Created:** [December 21, 2021, 11:08pm UTC](https://discuss.dwolla.com/t/workflow-of-payment-with-webhooks-events/7685 "2021-12-21T23:08:10Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![shreya](https://sea2.discourse-cdn.com/dwolla/user_avatar/discuss.dwolla.com/shreya/32/2154_2.png) [@shreya](https://discuss.dwolla.com/u/shreya)\
**Post date:** [December 30, 2021, 5:43pm UTC](https://discuss.dwolla.com/t/workflow-of-payment-with-webhooks-events/7685/4 "2021-12-30T17:43:27Z")

</div>

Hi @KevinMcKee – Hopefully this helps clarify things!

**Determining what webhooks to expect:**  
This [gist](https://gist.github.com/spencerhunter/998543e83b83992ae00a591e3f37abc7#transfer-scenario-2) should be helpful in determining exactly what webhooks you can expect to receive in the above scenario where a transfer is being made from an Unverified Customer’s bank to your Dwolla Account’s Bank.

**Why are there similar webhooks for the same actioin:**  
For each transfer involving two parties, we send two similar webhooks for each action; one includes the sender’s link and the other includes the receiver’s link. This is so that, if needed, you can handle any business logic separately for the Sender party and the Receiver party.

**Linking original transfer with second half of the transfer:**  
As for linking the original transfer with the second half of the transfer linked in the `bank_transfer_created`/`bank_transfer_completed` webhooks, when you make a GET request to the linked transfer, you can find the original transfer as a **`"funding-transfer"`** link in the response. Similarly, when you make a GET request to the original transfer, you will find the second half of the transfer as a **`"funded-transfer"`** link in the response.

`"funding-transfer"` → Follow this link to go back and determine how the balance got deposited on the initial bank-to-balance transaction.  
`"funded-transfer"` → Follow this link to go forward and determine the transfer that pushes funds out of a balance and into the bank of a destination Customer.

**Linking transfers using `"correlationId"`:**  
Additionally, you can also use a [**`correlationId`**](https://discuss.dwolla.com/t/correlation-id-value-in-knowing/5238) to link transfers together. This is a field you can append to a transfer request when creating a transfer like in the following example, and is returned in the response whenever you retrieve the transfer (including the funded and funding transfers).

```auto
POST /transfers 

{
   "_links": {
       "source": {},
       "destination": {},
   "amount": {},
   "correlationId": "any-random-string-upto-255-char-no-space"
}

```

Let us know if you have any questions!

---

_[View the full topic](https://discuss.dwolla.com/t/workflow-of-payment-with-webhooks-events/7685)._
