How to convert abandoned checkouts into confirmed orders?

We have a scenario:

When user checkouts the order, during payment through UPI or credit card or debit card, order goes into abandoned checkout due to delayed response from payment gateway.

Is there any API or GraphQL Mutation OR any other way to convert abandoned orders into confirmed order using script?

  1. is there any graphQL mutation available for to convert Abandoned order into confirmed Order.
  2. any Admin Rest API for to convert Abandoned order into confirmed Order.