Im testing paying via transfer with the following headers and body:
endPoint = "https://api.dwolla.com/transfers"
headers = [
“Authorization”: "Bearer " + self.tk,
“Accept”: “application/vnd.dwolla.v1.hal+json”,
“Content-Type”: “application/vnd.dwolla.v1.hal+json”
]
body
{
"_links" : {
“destination” : {
“href” : "mailto:lguerra10@gmail.com"
},
“source” : {
“href” : “https://api.dwolla.com/funding-sources/e0a0d1c1-e9a1-4b13-93be-e3f4f5f97ecd”
}
},
“amount” : {
“currency” : “USD”,
“value” : “0.43”
}
}
The request is successful because I see it in the activity of my source account.The payment goes through, The source account gets its balance reduced by $0.44 and the recipient gets his balance increased by $0.43
but I get the following response
{
“message” : “The request body contains bad syntax or is incomplete.”,
“code” : “BadRequest”
}
the response is clearly mistaken, the transaction was successful.
How can this happen?