voided
indicating it has been voided.
You can void an invoice only when it’s in a finalized
status, and the payment status is not succeeded
.
draft
status, as it hasn’t been finalized yet; orsucceeded
, indicating that the payment has been successfully processed; or