Obtain Token Not Authorized (REFRESH)

Using python sdk to test token refresh but it returns:

{‘message’: ‘Not Authorized’, ‘type’: ‘service.not_authorized’}

The access token is not expired yet so this may be the problem but if thats not an issue, I dont know what im doing wrong.

REQUEST DATA
body = {
“client_id”: credentials[‘application_id’],
“grant_type”: “refresh_token”,
“client_secret”: credentials[‘application_secret’],
“refresh_token”: obj.refresh_token
}

nevermind was a mistake with my credentials config, the environment was set to sandbox but i was using production credentials.

Glad to hear you figured it out. :slightly_smiling_face: