question

hardikadroja510 avatar image
hardikadroja510 asked frankline edited

How to renew api token?

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?

API Token
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

parquet76 avatar image
parquet76 answered

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).

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

frankline avatar image
frankline answered frankline edited

You should try to visit cloverdevloper website other wise you have option to generate to new api token. myccpay

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hardikadroja510 avatar image
hardikadroja510 answered

can we generate api token through web api?

if yes then how?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community