Text of razorpay.com › docs › api › refunds › create-normal as Styx crawled it on Nov 20, 2026. The page may have changed since. Only its words are kept, without pictures or layout, and only the first part of a long page.

Open the live page

Create a Normal Refund - Razorpay

Documentation Index Fetch the complete documentation index at: /docs/llms.txt Use this file to discover all available pages before exploring further. Skip to main content Assistant Responses are generated using AI and may contain mistakes. curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/pay_29QQoUBi66xm2f/refund \ -H 'Content-Type: application/json' \ -d '{ "amount": 500100 }' RazorpayClient razorpay = new RazorpayClient ( "[YOUR_KEY_ID]" , "[YOUR_KEY_SECRET]" ); String paymentId = "pay_29QQoUBi66xm2f" ; JSONObject refundRequest = new JSONObject (); refundRequest . put ( "amount" , 100 ); refundRequest . put ( "speed" , "normal" ); JSONObject notes = new JSONObject (); notes . put ( "notes_key_1" , "Tea, Earl Grey, Hot" ); notes . put ( "notes_key_2" , "Tea, Earl Grey… decaf." ); refundRequest . put ( "notes" ,notes); refundRequest . put ( "receipt" , "Receipt No. #31" ); Payment payment = razorpay . payments . refund (paymentId,refundRequest); $api = new Api ( $key_id , $secret ); $api -> payment -> fetch ( $paymentId ) -> refund ( array ( "amount" => "100" , "speed" => "normal" , "notes" => array ( "notes_key_1" => "Beam me up Scotty." , "notes_key_2" => "Engage" ), "receipt" => "Receipt No.

31" )); import razorpay client = razorpay.Client( auth = ( "YOUR_ID" , "YOUR_SECRET" )) client.payment.refund(paymentId,{ "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No. 31" }) import ( razorpay " github.com/razorpay/razorpay-go " ) client := razorpay . NewClient ( "YOUR_KEY_ID" , "YOUR_SECRET" ) data := map [ string ] interface {}{ "speed" : "normal" , "notes" : map [ string ] interface {}{ "key_1" : "value1" , "key_2" : "value2" }, } body , err := client .

Payment . Refund ( "<paymentId>" , 1200 , data , nil ) var instance = new Razorpay ({ key_id: 'YOUR_KEY_ID' , key_secret: 'YOUR_SECRET' }) instance . payments . refund ( paymentId ,{ "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No. 31" }) //initialize the SDK client RazorpayClient client = new RazorpayClient ( "[YOUR_KEY_ID]" , "[YOUR_KEY_SECRET]" ); string paymentId = "pay_Z6t7VFTb9xHeOs" ; Dictionary < string , object > refundRequest = new Dictionary < string , object >(); refundRequest .

Add ( "amount" , 200 ); refundRequest . Add ( "speed" , "normal" ); Dictionary < string , object > notes = new Dictionary < string , object >(); notes . Add ( "notes_key_1" , "Tea, Earl Grey, Hot" ); notes . Add ( "notes_key_2" , "Tea, Earl Grey… decaf." ); refundRequest . Add ( "notes" , notes ); refundRequest . Add ( "receipt" , "Receipt No. #32" ); Refund refund = client . Payment . Fetch ( paymentId ). Refund ( refundRequest ); require "razorpay" Razorpay . setup ( 'YOUR_KEY_ID' , 'YOUR_SECRET' ) paymentId = "pay_29QQoUBi66xm2f" para_attr = { "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No.

31" } Razorpay :: Payment . fetch (paymentId). refund (para_attr) razorpay refunds create pay_29QQoUBi66xm2f --amount 500100 --note key1="Test refund" { "id" : "rfnd_FP8QHiV938haTz" , "entity" : "refund" , "amount" : 500100 , "base_amount" : 500100 , "currency" : "INR" , "payment_id" : "pay_29QQoUBi66xm2f" , "notes" : [], "receipt" : "Receipt No. 31" , "acquirer_data" : { "arn" : null }, "created_at" : 1597078866 , "batch_id" : null , "status" : "processed" , "speed_processed" : "normal" , "speed_requested" : "normal" } { "error" : { "code" : "BAD_REQUEST_ERROR" , "description" : "The amount must be at least INR 1.00" , "source" : "business" , "step" : "payment_initiation" , "reason" : "input_validation_failed" , "metadata" : {}, "field" : "amount" } } POST / v1 / payments / :id / refund curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \ -X POST https://api.razorpay.com/v1/payments/pay_29QQoUBi66xm2f/refund \ -H 'Content-Type: application/json' \ -d '{ "amount": 500100 }' RazorpayClient razorpay = new RazorpayClient ( "[YOUR_KEY_ID]" , "[YOUR_KEY_SECRET]" ); String paymentId = "pay_29QQoUBi66xm2f" ; JSONObject refundRequest = new JSONObject (); refundRequest . put ( "amount" , 100 ); refundRequest . put ( "speed" , "normal" ); JSONObject notes = new JSONObject (); notes . put ( "notes_key_1" , "Tea, Earl Grey, Hot" ); notes . put ( "notes_key_2" , "Tea, Earl Grey… decaf." ); refundRequest . put ( "notes" ,notes); refundRequest . put ( "receipt" , "Receipt No. #31" ); Payment payment = razorpay . payments . refund (paymentId,refundRequest); $api = new Api ( $key_id , $secret ); $api -> payment -> fetch ( $paymentId ) -> refund ( array ( "amount" => "100" , "speed" => "normal" , "notes" => array ( "notes_key_1" => "Beam me up Scotty." , "notes_key_2" => "Engage" ), "receipt" => "Receipt No.

31" )); import razorpay client = razorpay.Client( auth = ( "YOUR_ID" , "YOUR_SECRET" )) client.payment.refund(paymentId,{ "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No. 31" }) import ( razorpay " github.com/razorpay/razorpay-go " ) client := razorpay . NewClient ( "YOUR_KEY_ID" , "YOUR_SECRET" ) data := map [ string ] interface {}{ "speed" : "normal" , "notes" : map [ string ] interface {}{ "key_1" : "value1" , "key_2" : "value2" }, } body , err := client .

Payment . Refund ( "<paymentId>" , 1200 , data , nil ) var instance = new Razorpay ({ key_id: 'YOUR_KEY_ID' , key_secret: 'YOUR_SECRET' }) instance . payments . refund ( paymentId ,{ "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No. 31" }) //initialize the SDK client RazorpayClient client = new RazorpayClient ( "[YOUR_KEY_ID]" , "[YOUR_KEY_SECRET]" ); string paymentId = "pay_Z6t7VFTb9xHeOs" ; Dictionary < string , object > refundRequest = new Dictionary < string , object >(); refundRequest .

Add ( "amount" , 200 ); refundRequest . Add ( "speed" , "normal" ); Dictionary < string , object > notes = new Dictionary < string , object >(); notes . Add ( "notes_key_1" , "Tea, Earl Grey, Hot" ); notes . Add ( "notes_key_2" , "Tea, Earl Grey… decaf." ); refundRequest . Add ( "notes" , notes ); refundRequest . Add ( "receipt" , "Receipt No. #32" ); Refund refund = client . Payment . Fetch ( paymentId ). Refund ( refundRequest ); require "razorpay" Razorpay . setup ( 'YOUR_KEY_ID' , 'YOUR_SECRET' ) paymentId = "pay_29QQoUBi66xm2f" para_attr = { "amount" : "100" , "speed" : "normal" , "notes" : { "notes_key_1" : "Beam me up Scotty." , "notes_key_2" : "Engage" }, "receipt" : "Receipt No.

31" } Razorpay :: Payment . fetch (paymentId). refund (para_attr) razorpay refunds create pay_29QQoUBi66xm2f --amount 500100 --note key1="Test refund" { "id" : "rfnd_FP8QHiV938haTz" , "entity" : "refund" , "amount" : 500100 , "base_amount" : 500100 , "currency" : "INR" , "payment_id" : "pay_29QQoUBi66xm2f" , "notes" : [], "receipt" : "Receipt No. 31" , "acquirer_data" : { "arn" : null }, "created_at" : 1597078866 , "batch_id" : null , "status" : "processed" , "speed_processed" : "normal" , "speed_requested" : "normal" } { "error" : { "code" : "BAD_REQUEST_ERROR" , "description" : "The amount must be at least INR 1.00" , "source" : "business" , "step" : "payment_initiation" , "reason" : "input_validation_failed" , "metadata" : {}, "field" : "amount" } } Available in 🇮🇳 India 🇲🇾 Malaysia 🇸🇬 Singapore 🇺🇸 United States Use this endpoint to create a normal refund for a payment, either in idempotent or non-idempotent flow.

You should set the refund speed to normal when creating a refund request to ensure refunds are processed at the normal speed. We will consider the default speed if you do not specify the same during the refund request. Know more about setting the default speed from the Dashboard.

The rest of this page is on the live site.