We followed your documentation https://poynt.github.io/developer/cloud/integrating-with-poynt-cloud-apis.html to generate access token on behalf of other merchants to access data.
We can able to get accessToken and can access merchants data.
The problem happens with the refreshToken, We can’t able to generate accessToken from refreshToken.
Followed https://poynt.github.io/developer/overview/authentication-authorization.html (USING REFRESH TOKEN TO FETCH A NEW ACCESS TOKEN)
Response received
{“code”:“INVALID_REFRESH_TOKEN”,“httpStatus”:401,“message”:“Refresh token is missing or invalid.”,“developerMessage”:“Invalid refresh token.”,“requestId”:“91730e0e-a2c1-4bb9-ab96-5b2290fd481f”}
FYI: I can able to get valid refreshToken once in awhile.
My questions are
-
Can we able to get valid refreshTokens?
-
Do we have to wait till accessToken to expire to generate new accessToken from refreshToken?
-
What is Point-Request-Id? Do we have to pass Poynt-Request-Id(Received while generating accessToken) as header while generating new accessToken?