We’re getting a response of "HTTP Basic: Access denied." when we try to exchange the code for tokens. We have tried in code and in Postman and get the same issue. Here’s what we are doing:
1. Hitting the https://api.sandbox.freeagent.com/v2/approve_app endpoint with our client_id and redirect url.
2. This is successful and our redirect url is hit with the code. So far so good…
3. We are then sending a post with basic auth (client_id and client_secret) with the code, grant_type and redirect_url params all set
4. This is where we are getting the Access denied response…
I have gone through all the docs and tried a bunch of stuff but can’t get the token response… I feel like I’m probably missing something simple but can’t find it!!
Thanks for your help!
Here are 2 screenshots from Postman, had to join them as I can only upload one image…
