post https://api-uat.azupay.com.au/v1/paymentRequest/refund
Refund a previously settled PaymentRequest back to the customer's source of funding. Optionally supply the amount to refund. Refunds requests can be rejected for the following failure reasons:
failureCode | failureReason |
---|---|
ERR0.03 | Refunds can only be done on COMPLETE, RETURN_COMPLETE or RETURN_FAILED payments |
ERR0.05 | Missing id. |
ERR0.06 | Refund amount value must be a number |
ERR0.07 | Refunds cannot be done against PaymentRequest's with multiPayment set to true |
ERR0.08 | Refunds can only be done on COMPLETE, RETURN_COMPLETE or RETURN_FAILED payments |
ERR0.09 | Refund for this client can only be for the full amount |
ERR0.10 | Refund amount must be less than or equal to original payment amount |
ERR0.11 | Insufficient funds to process this refund |