Are you ready?
In this tutorial, we are going to learn how to issue refunds as real-time batch transactions. For batch refunds to be performed successfully, follow these rules:
- You can issue up to 200 refunds at a time;
- All transactions that you are going to issue refunds for must belong to one sub-batch;
- Refunds can be issued for previously approved or partially approved transactions;
- When indicating a list of transaction IDs that are going to be used for batch refunds, every transaction ID must be started from a new row;
- For further identification of refund transactions issued in a batch, you are required to assign a particular note to it.
We will proceed as follows:
- Locate the ID of the sub-batch that you are going to issue refunds for.
- Run a query to obtain the IDs of all approved transactions associated with a particular sub-batch. As refunds can be made for active merchants only, you can obtain the IDs of the transactions using the query only for active merchants as well.
- Issue refunds using a designated form and collect transactions IDs.
- Get the result of the batch refund processing.
- Use a query to get the IDs of the transactions that failed to be refunded in case if there were any issues during batch refund processing.