A list of error codes.
400 Errors
Http status: 400 (Bad request) {"error": "invalid_grant"}
Caused by
The authorization code should be sent to the token endpoint to get the access token. Sending an invalid authorization code (expired, invalid or already used) will result in this error.
Solution
To solve this problem, make sure that you pass the correct authorization code within the expiration time period of 5 minutes. Also make sure you are not calling token endpoint multiple times with same authorization code.
Note: we recommend you to add a slight delay of 1000ms before calling this endpoint. This delay will make sure the authorization code are synchronised across our servers.