question

codeoptimalsolutions avatar image
codeoptimalsolutions asked David Marginian edited

I am trying to fetch all order listing but getting { "message": "401 Unauthorized" }

I am trying to get all order listing but getting unauthorized error i followed these link for getting token. https://docs.clover.com/docs/using-oauth-20

{ "message" : "401 Unauthorized" }


i am using these in PHP CURL

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

1 Answer

· Write an Answer
David Marginian avatar image
David Marginian answered David Marginian edited

Information on resolving 401s can be found here - https://docs.clover.com/docs/401-unauthorized, please read through it carefully.

If you are trying to make requests in Sandbox and your app id is M1......Y0 then a 401 is expected because your app does not have orders read permission. You will need to add orders read permission and then uninstall/reinstall your app from the Clover dashboard (instructions for doing this in the link I provided above).

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