Bulk Refund (Void)

You can use the Bulk Refund operation to refund multiple transactions to a customer in a single request. The refunds are based on the amount you provide. You can provide a partial or complete refund.

Please note:

  • This operation voids an authorized transaction or refunds a captured transaction based on the status of the transaction.
  • If refunding a captured transaction, you can provide a partial refund or a complete refund. The amount field can take values equal to or less than the captured amount. If you do not specify an amount, a customer receives the complete refund.
  • If voiding an authorized transaction, you must void the full authorized amount.
Path NamePath Details
End Point[Velocity URL]/mpoint/bulk-refund
Format/Content Typetext/xml
AuthenticationHTTP basic access authentication

Request

The following is an example of a Refund Transaction request:

<?xml version="1.0" encoding="UTF-8"?>
<root>
	<refund client-id="[integer]" account="[integer]">
		<transaction id="5768217" order-no="UID346">
			<amount country-id="200">158726</amount>
		</transaction>
	</refund>
	<refund client-id="[integer]" account="[integer]">
		<transaction id="5768212" order-no="JZC273">
			<amount country-id="200">251100</amount>
		</transaction>
	</refund>
</root>

Response

The following is an example of a Refund Transaction response:

<?xml version="1.0" encoding="UTF-8"?>
<root>
	<transactions client-id="[integer]">
		<transaction id="5768217" order-no="UID346">
			<status code="1000"> [message] </status>
		</transaction>
	</transactions>
	<transactions client-id="[integer]">
		<transaction id="5768212" order-no="JZC273">
			<status code="1000"> [message] </status>
		</transaction>
	</transactions>
</root>

OR

<?xml version="1.0" encoding="UTF-8"?>
<root>
	<status code="9400">
		<exception type="http">
			<code>400</code>
		</exception>
	</status>
</root>

📘

Note: If the status code is 1000, the refund is successful. Other rest response codes indicate a failure. Refer to Refund Payment Codes for details.