question

gajender avatar image
gajender asked bryanvargas commented

Payment Api Unauthrized


I am using the Clover REST API for reading and writing inventory, creating orders, and processing payments. I've generated a token using 2.0 authentication with all permissions, including payment processing. The token is successfully working for all APIs, including reading and writing inventory, as well as creating orders. However, when attempting to process payments via the payment API, I'm encountering a 401 Unauthorized error. The endpoint I'm trying to access is: https://sandbox.dev.clover.com/v3/merchants/{MerchantId}/orders/{OrderId}/payments"

REST API
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.

rosefletcher avatar image rosefletcher commented ·

If you are receiving a 401 Unauthorized error when attempting to process payments via the Clover REST API, there are a few potential reasons for this issue. Here are some troubleshooting steps you can verify the endpoint and request format: Double-check the endpoint URL you are using to access the payment API. In your case, the correct endpoint should be: https://sandbox.dev.clover.com/v3/merchants/{MerchantId}/orders/{OrderId}/payments. Make sure you replace {MerchantId} and {OrderId} with the actual values.

0 Likes 0 ·
corenegreen avatar image corenegreen commented ·
0 Likes 0 ·
bryanvargas avatar image bryanvargas ♦♦ commented ·

if you made edits to permissions after the app was downloaded the permissions are not sync and you will have to generate a new OAuth token (uninstall/ reinstall)

Here are more troubleshooting steps for 401

https://docs.clover.com/docs/401-unauthorized

0 Likes 0 ·

0 Answers

·

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