I'm trying to refund a payment using this api in a sandbox environment :
https://docs.clover.com/reference/refund
I'm getting the following response from the api :
{ "code": "processing_error", "message": "Raison de l'échec inconnue : FAIL.", "requestId": "0f6cf587-30055", "requestType": "REFUND", "type": "api_error" }
I have the same error when trying with your online interactive documentation, here's the generated request used to send the refund request :
curl --request POST \ --url https://sandbox.dev.clover.com/connect/v1/payments/4SXDT8MERZKS8/refunds \ --header 'Idempotency-Key: 2DAF0ABD-1C97-4557-9E97-F3AD9C924275' \ --header 'X-Clover-Device-Id: [MY_CLOVER_DEVICE_ID]' \ --header 'X-POS-Id: [MY_POS_ID]' \ --header 'accept: application/json' \ --header 'authorization: Bearer [MY_BEARER_TOKEN]' \ --header 'content-type: application/json' \ --data '{"fullRefund":true}'
Using a void request works, but I'd like to perform a refund request.
I've tried with fullRefund set to true and false, amount with multiple values, always getting the same error.
Here's the app requested permissions :
A previous version of the app didn't had the "Payments READ/WRITE" permissions, but the app has been removed / reinstalled on the device since. The "Installed apps" section in the App market on the device shows the new updated permissions for my app, so I guess everything is fine on that matter, but the refund payment still returns an error.
Can anyone tell me what's missing in my request?