Initiates a refund for a successful payment.
Provider behaviour:
succeeded on success or failed if Khalti rejects it.requires_action. You must process it manually through the eSewa merchant portal and the record will serve as your audit trail.Partial refunds: You can issue multiple partial refunds against a single payment as long as the total does not exceed the original payment amount.
Documentation Index
Fetch the complete documentation index at: https://docs.paybridgenp.com/llms.txt
Use this file to discover all available pages before exploring further.
Your PayBridge API key. Obtain one from the dashboard under Settings → API Keys. Prefix: pk_sandbox_ for testing, pk_live_ for production.
ID of the payment to refund (prefix: pay_).
"pay_01j9x2k3m4n5p6q7r8s9t0u1v2"
Amount to refund in paisa. Must be ≤ the remaining refundable amount.
10000
Reason for the refund.
customer_request, duplicate, fraudulent, other "customer_request"
Internal note visible in the dashboard. Not shown to customers.
"Customer contacted support, order not delivered."
Customer mobile number. Required by some Khalti configurations.
"9801234567"
Refund created.
"ref_01j9x2k3m4n5p6q7r8s9t0u1v2"
true when created with a live key, false for sandbox.
"pay_01j9x2k3m4n5p6q7r8s9t0u1v2"
sandbox, live Refunded amount in paisa.
10000
"NPR"
customer_request, duplicate, fraudulent, other succeeded — refund processed. requires_action — eSewa: must be processed manually via merchant portal. failed — provider rejected the refund.
processing, succeeded, failed, requires_action Provider's refund reference (Khalti only).
Set when status is failed or requires_action.