InvalidScope when creating transfer


#1

This is using the sandbox and API v2 for receive-only customers.

I’ve managed to create a customer, add it a funding-source.

When trying to transfer funds from the account’s funding source to the customer’s funding source I get a 401: {“code”:“InvalidScope”,“message”:“Missing or invalid scopes for requested endpoint.”}.

POST to https://api-sandbox.dwolla.com/transfers, payload is:
{
"_links": {
“source”:“https://api-sandbox.dwolla.com/funding-sources/0bae7615-a0f2-4808-8438-e2d5f01b373e”,
“destination”:“https://api-sandbox.dwolla.com/funding-sources/01dc8285-70eb-4f28-be6c-f2564fc75168
},
“amount”: {
“value”:“0.01”,
“currency”:“USD”
}
}

The oauth token is the same as the one used to create the customer and its funding source (obtained with grant_type=client_credentials).

What am I doing wrong?

I’ve never used the v1 API but still read the v1 -> v2 migration docs in which there is a mention of both: account access_token, and application access_token. Is it related to my problem? I found nothing about an account access_token in the v2 docs, nothing about scopes either.


#2

It started working today, was something fixed on dwolla’s side or should I look for sources of random errors on my side?


(Spencer Hunter) #3

@bmarket, Just wanted to close the loop on this particular issue. It appears that there was a minor bug uncovered relating to how the API was handling rejections. This should be fixed as of yesterday morning. Apologies for the inconvenience, please let us know if you run into any addition issues while testing!