captured yet, can be voided. Commerce supports both voiding an open and authorized payment.
Voiding open payments
This is a very simple operation that stops any activities in preparation for processing the payment. The prerequisite is that the payment is inopen state.
Voiding authorized payments
If a payment was successfully authorized, it can be voided as well. In such cases the authorized amount will be cleared on the processor. The prerequisite is, that the payment is inauthorized state. In contrast to voiding an open payment, this modification might fail, which could lead to a failed payment depending on the setup.
Request
Find the API documentation for the request here.Response
The payment will be invoiding state during handling the request. As soon as the voiding is completed, the payment will be in voided state.
Voided Payment (from authorized state)