team parameter.reason and amount are both required. amount must be at least 0.01 — thecurl --location 'https://api.gigstack.io/v2/payments/payment_1234567890/refund?team=undefined' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"reason": "Customer requested cancellation",
"amount": 1160,
"external_processor_refund": true
}'{
"success": true,
"data": {
"refund": {
"id": "refund_1234567890",
"reason": "Customer requested cancellation",
"total": 1160,
"status": "succeeded",
"timestamp": 1767225600000,
"from": "api",
"external_processor_refund": true
},
"payment": {
"id": "payment_1234567890",
"amount": 116000,
"total_refunded": 116000,
"refund_status": "refunded"
}
},
"message": "Operation completed successfully",
"timestamp": 1767225600000
}