Refunds
Initiate Refunds
POST
https://backendapi.sayswitchgroup.com/api/v1/refundThis endpoint allows you to initiate a refund for a specific transaction using its reference. Refunds can only be made on successful transactions that meet refund eligibility criteria.
cURL
curl -X POST https://backendapi.sayswitchgroup.com/api/v1/refund \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-d '{
"reference": "4757846579098876"
}'Sample Response
JSON
{
"success": true,
"message": "Refund submitted and in progress",
"data": {
"refund_id": 12,
"reference": "RF_qquhr0w88zxo7n7",
"status": "pending"
}
}