Skip to main content
Solved

How to Regenerate access Token through Rest Api.

  • October 19, 2022
  • 1 reply
  • 1362 views

Forum|alt.badge.img

If I already Login but My token has been expired .

How to refresh token get. 

or Any other way to get token through rest API.

 

Best answer by Marco Villasenor

If it expired I suppose you are using the Authorization Code flow.

This gives you the expiration and a refresh token.

Parameter Description
token_type The type of the access token, which is Bearer.
access_token The access token.
expires_in The period of time during which the access token is valid.
refresh_token The refresh token. The parameter is returned only if the offline_access scope was granted.

 

You then need to call the https://<Acumatica ERP instance URL>/identity/connect/token endpoint with this refresh_token to refresh the token.

1 reply

Marco Villasenor
Jr Varsity II
Forum|alt.badge.img+2

If it expired I suppose you are using the Authorization Code flow.

This gives you the expiration and a refresh token.

Parameter Description
token_type The type of the access token, which is Bearer.
access_token The access token.
expires_in The period of time during which the access token is valid.
refresh_token The refresh token. The parameter is returned only if the offline_access scope was granted.

 

You then need to call the https://<Acumatica ERP instance URL>/identity/connect/token endpoint with this refresh_token to refresh the token.