Refunds
A refund returns all or part of a successful payment intent amount.
Related API reference
curl https://api.onvopay.com/v1/refunds \
-X POST \
-H "Authorization: Bearer $ONVO_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"paymentIntentId": "pi_...",
"amount": 100000
}'
Recommendations
- Validate that the order can be refunded in your system before calling ONVO.
- Store the refund ID for reconciliation.
- Listen for webhook events to know the final result.