I’m using the transfers object to see the list of pending transfers that a user has, and I would use the source link to trace back to the sender so I could also tell them who their pending transfers are coming from… I noticed as part of the transfers for this user…
https://api-sandbox.dwolla.com/customers/22533c58-779e-464f-95dd-a5ba0ba0ba7d/transfers
The second transfer below is the funds ($3.55) going from Customer B to Customer A. The first transfer below is funds going from Customer A to Customer A ($3.55).
Is there a better way to go about this, or should I just filter out any of the source[‘href’] that have ‘funding-source’ instead of customer, or maybe that don’t have the individualAchId attribute? Is this how production works as well?
{
“_links”: {
“cancel”: {
“href”: “https://api-sandbox.dwolla.com/transfers/32f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“source”: {
“href”: “https://api-sandbox.dwolla.com/funding-sources/6edf12dc-5257-4580-9ea7-1abab5d6b5fa”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “funding-source”
},
“self”: {
“href”: “https://api-sandbox.dwolla.com/transfers/32f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“funded-transfer”: {
“href”: “https://api-sandbox.dwolla.com/transfers/33f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“source-funding-source”: {
“href”: “https://api-sandbox.dwolla.com/funding-sources/6edf12dc-5257-4580-9ea7-1abab5d6b5fa”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “funding-source”
},
“destination”: {
“href”: “https://api-sandbox.dwolla.com/customers/22533c58-779e-464f-95dd-a5ba0ba0ba7d”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “customer”
}
},
“id”: “32f1127d-e343-eb11-8129-d2ba35ae0f85”,
“status”: “pending”,
“amount”: {
“value”: “3.55”,
“currency”: “USD”
},
“created”: “2020-12-21T23:23:11.530Z”,
“clearing”: {
“source”: “standard”
},
“individualAchId”: “IBXRMRK9”
},
{
“_links”: {
“cancel”: {
“href”: “https://api-sandbox.dwolla.com/transfers/33f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“source”: {
“href”: “https://api-sandbox.dwolla.com/customers/22533c58-779e-464f-95dd-a5ba0ba0ba7d”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “customer”
},
“funding-transfer”: {
“href”: “https://api-sandbox.dwolla.com/transfers/32f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“destination-funding-source”: {
“href”: “https://api-sandbox.dwolla.com/funding-sources/46e93d09-5dc1-4bb5-906f-77284c618563”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “funding-source”
},
“self”: {
“href”: “https://api-sandbox.dwolla.com/transfers/33f1127d-e343-eb11-8129-d2ba35ae0f85”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “transfer”
},
“source-funding-source”: {
“href”: “https://api-sandbox.dwolla.com/funding-sources/6edf12dc-5257-4580-9ea7-1abab5d6b5fa”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “funding-source”
},
“destination”: {
“href”: “https://api-sandbox.dwolla.com/accounts/84cfb86b-54db-44e9-ba91-07968962450c”,
“type”: “application/vnd.dwolla.v1.hal+json”,
“resource-type”: “account”
}
},
“id”: “33f1127d-e343-eb11-8129-d2ba35ae0f85”,
“status”: “pending”,
“amount”: {
“value”: “3.55”,
“currency”: “USD”
},
“created”: “2020-12-21T23:23:11.277Z”,
“clearing”: {
“source”: “standard”
}
},
