Refunds a card (fiat) payment. Only payments with status PAYMENT_SUCCESS or CHECKOUT_SUCCESS and source FIAT can be refunded. Crypto payments cannot be refunded from API.
PAYMENT_SUCCESS
CHECKOUT_SUCCESS
FIAT
cURL
curl --request POST \ --url https://api.suby.fi/api/refund/{paymentId} \ --header 'Content-Type: application/json' \ --header 'X-Suby-Api-Key: <api-key>' \ --data ' { "reason": "Customer requested refund" } '
{ "success": true, "data": { "paymentId": "pay_abc123", "status": "REFUNDED" } }
API key authentication
Reason for the refund
500
"Customer requested refund"
Refund initiated
true
Show child attributes