Linking existing Xero Invoices to Pipedrive Deals

Is it possible to link invoices that already exist in Xero to deals in Pipedrive?

I know it’s possible to see them if they are created from Pipedrive, but it’s not possible for us to do this for the following reasons:

  • Invoices are generated from other ERP system, although sales are managed in Pipedrive
  • Invoices generated before Pipedrive was implemented

I understand it’s not possible in the interface, but are there any API endpoints that can manage Xero invoices on Pipedrive, or other methods to achieve this?