Menu

Request a direct refund

How to request a direct APM refund with an order modification.

Refund request

Prerequisite: You understand howmodification requestswork, as explained in the WPG integration guide.

All of the information you supply below is mandatory:

Copied!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//Worldpay//DTD Worldpay PaymentService v1//EN"
  "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE">
  <modify>
    <orderModification orderCode="YOUR_ORDER_CODE">
      <refund>
        <amount value="100" currencyCode="EUR" exponent="2">
      </refund>
    </orderModification>
  </modify>
</paymentService>

Refund response

The response confirms that we've received the modification successfully, not that it has been processed:

Copied!
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE paymentService PUBLIC "-//Worldpay//DTD Worldpay PaymentService v1//EN"
  "http://dtd.worldpay.com/paymentService_v1.dtd">
<paymentService version="1.4" merchantCode="YOUR_MERCHANT_CODE">
  <reply>
    <ok>
      <refundReceived orderCode"YOUR_ORDER_CODE">
        <amount value="100" currencyCode="EUR" exponent="2" debitCreditIndicator="credit">
      </refundReceived>
    </ok>
  </reply>
</paymentService>

What happens next

Providing that you've turned them on, you'll receiveorder notificationson the changing statuses of the refund.