API to update payment status for order in SW 6?

Hi All,

I was able to do that using -

Get order transaction id first-
https://sw6.shop.ecomedic.de/public/api/order/c1236a96143929ec298276bd1b5f6/transactions

and then Update order transaction status
https://sw6.shop.ecomedic.de/public/api/_action/order_transaction/1834565a8fec64e56b9b5298b9c2b80b1/state/paid