Initiate an Instant Refund
POST https://api.razorpay.com/v1/payments/{pay_id}/refund
Use this API to instantly issue a refund. You can return the full amount or just a part of it. For example, for a payment of INR100, you may refund either INR100 or INR50.
Learn more about the Create an Instant Refund API.
Request Body
{"amount"=>20000, "receipt"=>"Receipt No. 2", "notes"=>{"notes_key_1"=>"Tea, Earl Grey, Hot", "notes_key_2"=>"Tea, Earl Grey… decaf."}}