• Home
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • App Market Developer Platform
  • Clover GO
  • Ideas & Feedback
  • Semi-Integration
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
Skip to main content
  • Create
    • Ask a question
    • Post an idea
    • App Market Developer Platform
    • Clover GO
    • Ideas & Feedback
    • Semi-Integration
    • Topics
    • Questions
    • Articles
    • Ideas
  • Sign in
  • Home
  • App Market Developer Platform
This question was closed Apr 02 at 09:48 PM by Clover_Community_Bot for the following reason: automated

question

ydev avatar image
ydev asked · Jun 06, 2017 at 04:59 PM

Returned Token Unauthorized (Permission Enabled)

Not sure why the returned token from Clover cannot be used to call Clover API.
I already posted same question before, on Feb but no answer there, so I post this one. Hopefully someone answering this.
REST APIAPI Token
Comment
· 4 comments
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

Miguel avatar image Miguel · Jun 06, 2017 at 05:00 PM

How are you generating the token? What endpoint are you calling? Can you provide more details or link to your other question. Thanks!

0 · ·
ydev avatar image ydev Miguel · Jun 06, 2017 at 05:14 PM

Using OAUTH : https://docs.clover.com/build/oauth-2-0/
Endpoints following the docs but not sandbox
https://api.clover.com/oauth/token?client_id={appId}&client_secret={appSecret}&code={codeUrlParam}

Response from API
{ access_token: 'X5dX1c08-59dX-fX20-b6Xd-9cf60XXX395X' } (edited)

0 · ·
Miguel avatar image Miguel ydev · Jun 06, 2017 at 05:47 PM

HI @yauri, what's the app id?

0 · ·
Show more comments

2 Answers

  • Sort by Created Created
  • Sort by Oldest Oldest
  • Sort by Votes Votes
Miguel avatar image
Miguel answered · Jun 06, 2017 at 07:01 PM ACCEPTED ANSWER Locked
I believe the issue is that you need to uninstall and reinstall your app on your test merchant if you changed the permissions after the initial installation. I believe that's why you are getting a 401. OAuth generated tokens work for me when I tested.
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

ydev avatar image
ydev answered · Jun 06, 2017 at 08:11 PM Locked
Thanks! Resolved
0 · Share
10 |2000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

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

question details

3 People are following this question.

ydev follows this question miguel follows this question virtualninjach follows this question
Answers Subscribe to Answers Answers and Comments Subscribe to Comments and Answers

Related Questions

Get Modifer Groups Associated to Specific Items 2 Answers

Question re: custom e-commerce site and Clover integration 2 Answers

Android and OAuth for Clover Web-App 2 Answers

Experiencing an 'Unauthorized credential' error when using the API to obtain and submit an Oauth Token 1 Answer

Pulling Merchant information using app secret 1 Answer

Answerhub Logo
  • About
  • ·
  • FAQ
  • ·
  • Privacy
  • ·
  • Copyright © 2010-19 DZone, Inc.