BadRequest - On Transfer


(Jenno Xcel) #1

Hello Team,

I would like to make a transfer and that always throws me a very strange error

{
  "code": "BadRequest",
  "message": "The request body contains bad syntax or is incomplete."
}

Please find the request body

 {
    "_links": {
        "source": {
            "href": "https://api-sandbox.dwolla.com/accounts/048a19cc-c4e9-4f63-9883-79ef7bd77711/funding-sources"
        },
        "destination": {
            "href": "https://api-sandbox.dwolla.com/customers/056fda57-2c56-49a0-aeff-35125957a59a/"
        }
    },
    "amount": {
        "currency": "USD",
        "value": "10.00"
    }
}

Any ideas on how to fix this?


(Spencer Hunter) #2

@jennoxcel, source must always be a funding source that belongs to a Customer or Account resource. The link you pass in should look something like this: https://api-sandbox.dwolla.com/funding-sources/4a4f7380-c91c-4757-932b-cb44a8a396ec.

You should be able to obtain funding sources for your account with a GET to /accounts/048a19cc-c4e9-4f63-9883-79ef7bd77711/funding sources as shown in the docs here.