Unable to get on demand authorization with production keys

I’m testing my application now that I’ve swapped to production keys, and am no longer able to receive the on demand authorization response/url from Dwolla. The only thing I’ve changed are the keys that are being passed to the dwolla_client - I was able to add a customer/verify so I’m pretty sure it’s not the keys themselves. I’m using the python dwollav2 SDK and calling it like so:

dwolla_client = dwollav2.Client(
  key = DWOLLA_APP_KEY,
  secret = DWOLLA_APP_SECRET,
  environment = 'production'
)
app_token = dwolla_client.Auth.client()
on_demand_authorization = app_token.post('on-demand-authorizations')
return JsonResponse(on_demand_authorization.body, status=status.HTTP_200_OK, safe=False)

The response I receive is:
ForbiddenError: {"code":"Forbidden","message":"The supplied credentials are not authorized for this resource."}

@jmtichell, sorry for the delay in response and issues with regards to making this API call. Typically an HTTP 403 Forbidden refers to a setting not being enabled on your Admin Dwolla account. We went ahead and enabled this so you should be good to retry this request. Let us know if you continue to run into issues!

Thanks, it’s working now!

1 Like