Hello!
I am trying to list the funding sources of a user. I’m using the Python SDK. Here’s what I’m running with the credentials removed:
client = dwollav2.Client(
key=settings.DWOLLA_KEY,
secret=settings.DWOLLA_SECRET,
environment='sandbox'
)
dwolla_api = client.Auth.client()
dwolla_api.get('{}/funding-sources'.format(user.dwolla_url)).body
This appears to be following the documentation, as far as I can tell. However, this raises an InvalidScopeError, “Missing or invalid scopes for requested endpoint.”
When checking the ‘.scope’ attribute on the ‘dwolla_api’ variable above, None is returned.
Please let me know what I need to change to get this working. Thank you!
Hey @Fox_Piacenti Is this error returned in our Sandbox environment? You will need a privileged scope to make calls to the API in our production environment.
If your application has been approved to launch in production with creating API Customers then please contact your Account Manager for further assistance.
Yes, it is being made in the sandbox environment.
@CoolStoryCory Since it is in the Sandbox environment, do I need to do anything with privileges to get the scope to populate?
You should be fine with calling the API, no scopes to turn on. I would make sure you are making calls to our Sandbox by setting dwolla.configure to ‘sandbox’ rather than ‘prod’
As shown in the above, I invoke the library with the sandbox environment flag, so it appears to be happening on the sandbox, even though it should not.
@CoolStoryCory Is there anything else which I can check?
Hey @Fox_Piacenti I believe we rolled out a fix for this issue. Could you try again? If not, feel free to direct message me at your convenience and we can dig deeper into your account.
@CoolStoryCory It’s still happening. I’m not seeing a way to direct message you on this forum software. I’ve checked your profile page and my inbox. Where’s the button for submitting a direct message?