post https://sandbox.cashfree.com/verification/verification/oauth2/generate-token
Use this API to generate an access token after successfully completing the OAuth authentication process. This token is required to access protected resources.
Response Codes
Sub Code | Status | Message | Next Action |
---|---|---|---|
200 | SUCCESS | - | Use this access token to fetch the user details. |
400 | ERROR | auth_code is missing in the request. | Include the auth_code parameter in the request. |
400 | ERROR | auth_code should be valid. | Provide a valid auth_code. |
400 | ERROR | x-client-id is missing in the request. | Include the x-client-id in the request headers. |
400 | ERROR | x-client-secret is missing in the request. | Include the x-client-secret in the request headers. |
401 | ERROR | Invalid clientId and clientSecret combination. | Ensure the clientId and clientSecret are correct. |
500 | ERROR | something went wrong. | Retry the request after some time. |