Hi Shyam, I removed your application Key from the above comment since it’s considered highly sensitive information that needs to be stored securely, at least in Production.
As for the request body, there is no Dwolla GUID in there that I can use to search in my logs. Is your sandbox account set up under the same email that you’re using to sign up here? If so, I can just use your email address to look up the account!
Looking at the logs, it looks like we had a blip in the Sandbox environment this morning that caused transfers to fail due to no services being available to receive the request.
The services are back up again and I am able to create transfers in my Sandbox test account. Would you be able to try creating transfers again?
As an aside, you should be able to catch the error and get the JSON response-body for errors. You can try wrapping the request in a try/catch and display the error response by calling the getResponseBody() method.
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
49
Hi @vikas , would you be able to move this to a try catch and log out the exception as referenced in Shreya’s reply above? It looks like the error response body may be getting swallowed and not returning a very helpful response.
Thank so much for your quick response. As per your suggestion, I kept the code in try catch block and received the below response for your reference.
[DEBUG] HTTP Request body ~BEGIN~
{“_links”:{“source”:{“href”:“https://api-sandbox.dwolla.com/funding-sources/6cb298c8-edf5-4697-aa14-0581c059c27b”},“destination”:{“href”:“https://api-sandbox.dwolla.com/funding-sources/be4816ba-aeba-46f7-9f9a-b1cc89550b49”}},“amount”:{“currency”:“USD”,“value”:50}}
~END~
[DEBUG] HTTP Response body ~BEGIN~
{“code”:“ValidationError”,“message”:“Validation error(s) present. See embedded errors list for more details.”,“_embedded”:{“errors”:[{“code”:“NotAllowed”,“message”:“Receiver cannot receive from sender.”,“path”:“/_links/destination/href”,“_links”:{}}]}}
~END~
Connection #0 to host api-sandbox.dwolla.com left intact
{“error”:true,“message”:“{"code":"ValidationError","message":"Validation error(s) present. See embedded errors list for more details.","_embedded":{"errors":[{"code":"NotAllowed","message":"Receiver cannot receive from sender.","path":"/_links/destination/href","_links":{}}]}}”}
I noticed, why it says “Receiver cannot receive from sender.” however, I sent funding source URL properly for sender and receiver both. Kindly suggest me so that I can move forward.
spencer
(Spencer Hunter - Lead Developer Advocate @ Dwolla)
52
Hi @vikas , as referenced in our developer documentation on Customer types, a transfer between two parties requires that at least one party must be CIP verified. It is your decision about which party completes this process based on your business model. If you are facilitating a transfer between two different users, at least one of them needs to be onboarded as a Verified Customer.