question

thoughtspacewebsites avatar image
thoughtspacewebsites asked thoughtspacewebsites commented

401 Error on ecomm refunds ONLY in production

So we've got a solution that utilizes the ecomm API in order to process basic charges through the v1/charges endpoint, and refunds through v1/refunds. Everything works perfectly as expected in the development account, and I can easily process new charges and refunds, but when we switch to production, we can process charges against v1/charges just fine, but any attempts to hit the v1/refunds endpoint result in a "401 unauthorized" error. Clearly this isn't my app key / ID / authorization key because charges actually do work in production, but what could this be? The URLs I'm using for sandbox are:

https://scl-sandbox.dev.clover.com/v1/charges
and
https://scl-sandbox.dev.clover.com/v1/refunds

and the URLs I'm using for production are:

https://scl.clover.com/v1/charges
and
https://scl.clover.com/v1/refunds


Any idea why the production refunds endpoint wouldn't work while all of the other endpoints do?

ecommerce
10 |2000

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

thoughtspacewebsites avatar image
thoughtspacewebsites answered

Just bumping this as it's currently blocking us from processing ANY eCommerce refunds right now, which is a pretty large deal for us!

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 thoughtspacewebsites commented

Our documentation describes the permissions required for EComm API calls - https://docs.clover.com/docs/ecommerce-app-permissions. Note, additional permissions (additional to what is required to make a charge) are required to perform a refund.

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

thoughtspacewebsites avatar image thoughtspacewebsites commented ·

Alright, I've made the required permission changes and submitted my app for review. Thanks for that. After approval, are there any additional steps I'll have to take in order to have this change picked up by our system? Will anything need to be relinked at all?

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ thoughtspacewebsites commented ·

Yes, please read the following for what will be required - https://docs.clover.com/docs/401-unauthorized#check-your-apps-permissions.

0 Likes 0 ·
thoughtspacewebsites avatar image thoughtspacewebsites David Marginian ♦♦ commented ·
Easy enough. Any idea on how long the review process should take for adding a few permissions on an already previously approved app?
0 Likes 0 ·
Show more comments

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