Hi @urunotao ,
Ewa here from the Engineering Team at FreeAgent — thanks for your message on our forum and I’ll do my best to help out.
So that I can locate your requests in our logs, and hopefully spot the problem, could I ask that you provide some additional information from the list below?
The name of your app (as registered in Dev Dashboard)
Timestamps of your requests (in UTC)
The IP(s) from which your requests are being sent
Which environment are you querying? (production or sandbox)?
One thing to bear in mind is that the authorization code which you receive in the redirect URL after a user approves your app is only valid for 15 minutes, so it will have to be exchanged for an access and refresh tokens within that timeframe. Other than that, as long as you pass the
redirect_uri which you registered on Dev Dashboard, correct
grant_type=authorization_code in your request body, and your client ID and secret in the Authorization header, things should work as expected; you can test this process using our Quick Start Guide and the Google OAuth 2.0 Playground.