question

vishnu avatar image
vishnu asked David Marginian Deactivated edited

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

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 Deactivated answered David Marginian Deactivated edited
8 comments
10 |2000

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

vishnu avatar image vishnu commented ·

@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 ·
vishnu avatar image vishnu vishnu commented ·

i tried "get a single merchant"

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ vishnu commented ·

What merchant id are you passing in the request?

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

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.

10 |2000

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