we use the api token for getting order and payment detail but some time ago token was expier.
api return 401 code. so how to renew api token?
It is unclear what type of token you are using, but currently, tokens do NOT expire.
You should be using an OAuth token which you obtained via the process mentioned here - https://docs.clover.com/docs/obtaining-an-oauth-token. If so, as I said these tokens do not currently expire. If the token isn't working you need to troubleshoot it - https://docs.clover.com/docs/401-unauthorized.
If you happen to be going against Clover rules/recommendations and you are using a merchant token, it is possible the merchant mistakenly deleted your token. In this case this is your problem and something you need to resolve with your merchant (the merchant would need to generate a new token via their dashboard and provide it to you).
6 People are following this question.