GetTransfer JSON response

Hi,

Can you tell me the difference between the __links in the getTransfer API. What is the difference between - “Cancel” link, Source, Self, funded-transfer, destination?

This is the sample JSON in the API docs -

 "transfers": [{
      "_links": {
        "cancel": {
          "href": "https://api-sandbox.dwolla.com/transfers/14c6bcce-46f7-e811-8112-e8dd3bececa8",
          "type": "application/vnd.dwolla.v1.hal+json",
          "resource-type": "transfer"
        },
        "source": {
          "href": "https://api-sandbox.dwolla.com/funding-sources/12a0eaf9-9561-468d-bdeb-186b536aa2ed",
          "type": "application/vnd.dwolla.v1.hal+json",
          "resource-type": "funding-source"
        },
        "self": {
          "href": "https://api-sandbox.dwolla.com/transfers/14c6bcce-46f7-e811-8112-e8dd3bececa8",
          "type": "application/vnd.dwolla.v1.hal+json",
          "resource-type": "transfer"
        },
        "funded-transfer": {
          "href": "https://api-sandbox.dwolla.com/transfers/15c6bcce-46f7-e811-8112-e8dd3bececa8",
          "type": "application/vnd.dwolla.v1.hal+json",
          "resource-type": "transfer"
        },
        "destination": {
          "href": "https://api-sandbox.dwolla.com/funding-sources/84c77e52-d1df-4a33-a444-51911a9623e9",
          "type": "application/vnd.dwolla.v1.hal+json",
          "resource-type": "account"
        }

Hi @jlansden!

Cancel: The href here is related to the same one you would use to cancel the transfer
Source: Is where the transfer came from (who sent it)
Self: Refers to the transfer itself
Funded-transfer: Contains more info regarding the transfer itself (status, amount, etc.)
Destination: Refers to where the transfer is going, or to which account the money will be transferred to

I hope this was helpful. Please don’t hesitate to reach out if you have any further questions.

We also have a Postman collection where you can also learn more information about the links and API.