question

asd avatar image
asd asked David Marginian Deactivated answered

Unauthorized error in pay for order endpoint

I am getting an unauthorized error when using pay for order endpoint https://docs.clover.com/reference/postordersidpay but it gives correct result for create a charge endpoint https://docs.clover.com/reference/createcharge . Using same oauth for both endpoint. Any ideas of what could be the problem here.

Payments
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

·
David Marginian avatar image
David Marginian Deactivated answered

Your token probably doesn't have the correct permissions - https://docs.clover.com/docs/ecommerce-app-permissions. You will need to adjust your permissions, uninstall/reinstall your app from the dashboard and then obtain a new 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.

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