Method ReverseRefund
ReverseRefund(AfterPayReverseRefundRequest, AfterPayCallContext)
Creates a refund reversal against a previously created refund.
Declaration
Task<AfterPayRefundReversal> ReverseRefund(AfterPayReverseRefundRequest request, AfterPayCallContext requestContext)
Parameters
Type | Name | Description |
---|---|---|
AfterPayReverseRefundRequest | request | A AfterPayReverseRefundRequest containing details of the refund reversal to create. |
AfterPayCallContext | requestContext | A AfterPayCallContext instance containing additional details required to make the request. |
Returns
Type | Description |
---|---|
Task<AfterPayRefundReversal> | An AfterPayRefundReversal containing details of the refund reversal created within the AfterPay system. |
Remarks
This method is intended to ensure a refuund is cancelled when it's status is/was unknown at the time the customer was present. For more information see https://docs.afterpay.com.au/instore-api-v1.html#refund-reversal
Exceptions
Type | Condition |
---|---|
AfterPayApiException | Thrown if the request is rejected by the AfterPay API. |
System.ArgumentNullException | Thrown if |