FE accounts payable endpoint reference looks like this could be done with PATCH invoice, but it doesn't work and this forum post says it was in development a few years ago, but apparently it's still not a feature. Many third party tools would like to be able to import to invoices as paid because the payments were made via external tools.