Online Refunds
Online Refunds
Refunds for online transactions are processed as Card Not Present (CNP) refunds. You can process either full refunds or partial refunds for specific items in an order. This guide explains how to initiate these refunds and check their status using the API or merchant portal.
Prerequisites
- API credentials
purchaseOrderId- The orderId of the original purchase transaction that you want to refund- For partial refunds:
- Details of specific items to be refunded
- Item information for orderLines (name, quantity, unitPrice)
Types of Refunds
Full Refund
Process a complete refund for the entire order amount.
Partial Refund
You can create partial refunds in two ways:
Initiate Online Refund
To initiate an online refund, use the CNP refund method provided in the Initiate Payment API.
Step 1: Create Return Order
Step 2: Initiate Refund Payment
Use the return orderId received from Step 1:
Refund Reason Codes
When using OTHER as the refundReason, you must provide an otherReason parameter describing the reason for the return request.
Partial Refunds
Method 1: Using OrderLines
Create a return order by specifying the items to be refunded. The total refund amount will be automatically calculated based on the orderLines.
OrderLines Parameters:
Step 1: Create Return Order with OrderLines
Step 2: Initiate Refund Payment
Note
purchasePaymentId is required only when the original order was paid partially, regardless of payment type. It is not required for card-present refunds.
Method 2: Using Total Order Amount
Create a return order by specifying the refund amount directly.
TotalOrderAmount Parameters:
orderLines is required for both purchase and return orders. The only exception is when processing a partial refund using the totalOrderAmount field. In this case, orderLines is not needed.
Step 1: Create Return Order with Total Amount
Step 2: Initiate Refund Payment
Payment Method for Refunds
Important
Refunds must be processed using the corresponding payment method used in the purchase transaction.
Check Refund Status
You can listen to the webhook to receive status of the refund or check its status using the Fetch Order Status API. This API allows you to track the progress of your refund request.