Refunds
curl -X POST https://paylynks.io/api/v1/refunds -H "Authorization: Bearer $PAYLYNKS_SECRET_KEY" \
-H "Content-Type: application/json" -d '{"payment_intent": "pi_...", "amount": 5000}'
amountis cents of the charged total; omit it to refund everything left.reason:requested_by_customer(default),duplicate,fraudulent,other.- Any card surcharge is refunded in proportion, as card network rules require. The last refund takes any rounding remainder, so a fully refunded payment always returns the whole surcharge.
- You can't refund more than was charged, even with refunds in flight at the same time.
Events: refund.created, refund.failed.