question

mikhail avatar image
mikhail asked David Marginian answered

401 unauthorized on order update

I'm trying to update and order using the following POST request:

https://sandbox.dev.clover.com/v3/merchants/{merchant_id}/order_types/{order_type_id}

with the following body:

{"label":"Foo"}

and i get

{"message":"401 Unauthorized"}

I'm pretty sure there is no problem with my credentials or something because as soon as change (in my postman app) the request from POST to GET I receive the proper response with the specified order type. Everything else remains the same. Just GET instead of POST. And it works

There already is a similar thread and it looks like it wasn't resolved. So please look into it and let me know if you want me to try something or provide any additional details

Orders
10 |2000

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

Retrieving a order type requires merchant read permissions. Creating an order type requires merchant write permissions. Please adjust the permissions on your app accordingly, note, you will need ot uninstall/reinstall your app and then obtain a new token after you adjust your app permissions. More information here - https://docs.clover.com/docs/401-unauthorized

10 |2000

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