question

jbpcan avatar image
jbpcan asked ·

Unable to generate api token from sandbox account for REST API use

I created a sandbox account with clover. I don't have an actual production account yet.

Trying to generate an API token, but the page keeps displaying processing status.

I have added a Test App with AppType set to REST clients that generated an APP ID along with the APP secret.

Is there anything else that needs to be done in order to generate a token?

https://docs.clover.com/docs/create-an-api-token

Followed all the steps from the link above, but the button to create New token is blocked by the clover processing overlay.

REST APIAPI Token
10 |2000 characters needed characters left characters exceeded

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

ramiro avatar image
ramiro answered ·

Is there a way to obtain an API Token? I have the same problem jbpcan has

trying to generate a Token...

1 comment
10 |2000 characters needed characters left characters exceeded

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

Yes, generally in production you aren't going to be using merchant tokens anyway - take a look at this article for step-by-step instructions - https://community.clover.com/articles/29543/obtaining-an-access-token-via-the-oauth-flow-in-sa.html.

0 Likes 0 ·
jbpcan avatar image
jbpcan answered ·

Tried in Firefox, Chrome and Edge, same issue. The overlay appears everywhere.

I follow the steps listed here - https://docs.clover.com/docs/using-oauth-20

After step 8, the page stays blank, the URL contains only client_id. Nothing else.

Also, I was hoping I would be able to test the APIs via postman, so was hoping to get a permanent token temporarily.

7 comments
10 |2000 characters needed characters left characters exceeded

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

What is the oauth response type in your apps configuration? It sounds like you have it set to token and it should be code.

0 Likes 0 ·
jbpcan avatar image jbpcan David Marginian ♦♦ ·

The document says to set it to token in Step 4?

0 Likes 0 ·

Just install the app to your merchant, instructions here - https://community.clover.com/articles/23744/resolving-401-unauthorized-responses-when-making-a.html. Then just click your app link from your merchant dashboard and you will be directed to your app and if you have the type as token the token will be in the URL.

0 Likes 0 ·
Show more comments
David Marginian avatar image
David Marginian answered ·

I can't reproduce this issue. Have you tried logging out and then back in, or using a different browser? Why don't you just use an OAuth token?

10 |2000 characters needed characters left characters exceeded

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