I'm using "Create a refund" through https://scl-sandbox.dev.clover.com/v1/refunds by charge ID.
But keeps returning:
{"message":"400 Bad Request","error":{"code":"processing_error","message":"Could not refund transaction: TOKEN FAILURE"}}
Meanwhile, I even get the same error when I manually refunding through the admin panel (pre-built API call functions by Clover itself).
I believe the reason should be one of the following:
1. Clover Internal Error for handling refund in the sandbox.
2. Settings are not correct.
For case 1: Please check your API accessibility for the sandbox. If this only happens in the sandbox, it is fine, but if there is some issue in production, you might need to fix it. And please let us know if the production environment is good or not.
For case 2: Please let us know the right setting to enable the refund through API and admin panel.
Thanks