Paid orders using REST

Hi everyone

Here is the situation

  • Customer ordered with a bank deposit payment
  • From our system, we will check if those payments are made using API
  • If yes, add the payment to that order
  • Should mark as partially paid if total payment is not equal to the payment from API

Is this possible and which “kind” should I use to the transactions API?
https://shopify.dev/docs/api/admin-rest/2024-01/resources/transaction#resource-object