question

shoplnkitdev avatar image
shoplnkitdev asked parquet76 commented

Refund api said "Unauthorized"

when I try to use the api :"https://scl-sandbox.dev.clover.com/v1/refunds", it came out "{"message":"401 Unauthorized","error":{"code":"processing_error","message":"401 Unauthorized"}}", What should I set?

Refund
1 comment
10 |2000

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

bryanvargas avatar image bryanvargas ♦♦ commented ·

There could be a variety of reasons, please review: https://docs.clover.com/docs/401-unauthorized and attempt to troubleshoot.

0 Likes 0 ·

1 Answer

·
shoplnkitdev avatar image
shoplnkitdev answered parquet76 commented

We already check the possible reason of the link you send.

My test account is available, be able to pay successfully. just cannot refund. Im stuck here

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

bryanvargas avatar image bryanvargas ♦♦ commented ·
Please private message your app ID, merchant ID and payment ID for me to review the logs.
1 Like 1 ·
parquet76 avatar image parquet76 commented ·

The permissions required for the ecomm api are documented here - https://docs.clover.com/docs/ecommerce-app-permissions.

Per the link Bryan posted, you likely either don't have the correct permission OR you added it AFTER you installed your app. If that is the case you need to uninstall and re-install your app.

0 Likes 0 ·

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