Accounting API - Matching Invoices with Receipts

Hello,

I’m currently working with the new accountancy API endpoints for invoices and receipts. The new endpoints for invoices and receipts are really helpful, but I’m struggling to match which invoices were paid under which payment. It seems like there’s no common key or reference between the two endpoints that would allow me to link them directly.
I could try to make some assumptions by using the contractor ID and matching dates from the invoice and payment breakdown, but that feels a bit hacky and unreliable.
It would be really helpful if the invoice object included an optional payment ID or if the payment breakdown rows listed the related invoice IDs directly.

Has anyone else run into this issue or found a clean workaround? Any insights would be much appreciated — thanks in advance!