Automate matching invoice to transaction

Is there an API to match and convert invoice to payment . Unfortunately I can not find it in documentation.
Thanks

Hi,

You can configure rules to match by in the bank account settings.

Thanks for suggestion.
I tried rules but it did I not worked.
-seems it has to have static values.In our case amount is different and description contains invoice number.

  • even I tried account number from description within rules but it did not triggered rules