question

vishnu avatar image
vishnu asked ·

API-Test 401 Error

Hello,

i created a new dev sandbox account and generated API token. i try to test them at "try it " page

https://docs.clover.com/reference/merchants-1 .

the URL that its hitting is

https://sandbox.dev.clover.com/v3/merchants/mId

but with the merchant id and token that i generated ( with all the permissions) giving 401 un authorized error.


Can you please guide me .

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.

David Marginian avatar image
David Marginian answered ·
8 comments Share
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.

@David - This is the "try it" from clover and its basic request. this token has all the permissions still 401 error. if you see on the first URL its populating the code. i know its common error but i am trying your code populated under this URL. check this URL

https://docs.clover.com/reference/merchants-1 .

0 Likes 0 · ·

i tried "get a single merchant"

0 Likes 0 · ·

What merchant id are you passing in the request?

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

Developer was using incorrect merchant id. The article posted in the original answer has instructions on obtaining the correct merchant id to use with our REST API.

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

Welcome to the
Clover Developer Community