question

rehanwmu avatar image
rehanwmu asked David Marginian Deactivated commented

401 unAuthrozed rest api from local computer

Getting 401 when calling below api using postman from my local computer

curl --request GET \ --url https://apisandbox.dev.clover.com/v3/merchants/{mId} \ --header 'accept: application/json' \ --header 'authorization: Bearer {auth_token}'

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.

David Marginian avatar image
David Marginian Deactivated answered
10 |2000

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

rehanwmu avatar image
rehanwmu answered rehanwmu commented

@David Marginian still getting same issue

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

David Marginian avatar image David Marginian ♦♦ commented ·
If you would like more assistance you will need to provide the exact steps you are taking to obtain the access token and your app id.
0 Likes 0 ·
rehanwmu avatar image rehanwmu David Marginian ♦♦ commented ·
@David please attachment
0 Likes 0 ·
rehanwmu avatar image
rehanwmu answered David Marginian Deactivated edited

1 comment
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 ♦♦ commented ·

The public token is your PAKMS key (should be used only for card tokenization). The private key is your access token and what you need to use in your Authorization header for API calls. Note: it is prohibited to use merchant tokens in production for multi-merchant integrations.

0 Likes 0 ·
rehanwmu avatar image
rehanwmu answered

any update on this issue

10 |2000

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

rehanwmu avatar image
rehanwmu answered David Marginian Deactivated commented

can you please clarify this point "Note: it is prohibited to use merchant tokens in production for multi-merchant integrations."

1 comment
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 ♦♦ commented ·

If you are building an integration and many Clover merchants will be using your integration you should not be using Merchant tokens. Your integration should be an "App" and be available in our App Market and you should be obtaining an OAuth token (https://docs.clover.com/docs/using-oauth-20).

0 Likes 0 ·
rehanwmu avatar image
rehanwmu answered David Marginian Deactivated commented

@David if i want to send order to clover using iphone app. I will not able to do it. If not how can i accomplish this

1 comment
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 ♦♦ commented ·

You need to create a Clover app (integration) and get it approved in our App Market. A merchant would install (connect to) your integration and you would obtain an OAuth token (https://docs.clover.com/docs/using-oauth-20). You would then secure store the OAuth token and use it for subsequent payments via your app.

0 Likes 0 ·

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