Create refund
instamojo_create_refundWRITE (moves money): refund a payment, in full or in part. Instamojo allows only ONE refund per payment, so a partial refund cannot be topped up later. Without confirm: true nothing is sent and the call returns a preview of the refund; ask the user to confirm, then call again with confirm: true. Reason types: RFD = duplicate/delayed payment, TNR = product/service no longer available, QFL = customer not satisfied, QNR = product lost/damaged, EWN = digital download issue, TAN = event was canceled/changed, PTH = problem not described above. POST /refunds/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | Text explaining the refund. | |
| type | Yes | Reason code. RFD = duplicate/delayed payment, TNR = product/service no longer available, QFL = customer not satisfied, QNR = product lost/damaged, EWN = digital download issue, TAN = event was canceled/changed, PTH = problem not described above. | |
| confirm | No | Must be true to actually create the refund; otherwise only a preview is returned. | |
| payment_id | Yes | Payment id (MOJO...) of the payment to refund. | |
| refund_amount | No | Amount to refund in INR; default the full paid amount. | |
| transaction_id | No | Your own unique id for this refund case; Instamojo uses it to refuse a replayed call (mandatory from the second refund case onwards). |