How to upload payment Entry with attached sales invoice

How to upload payment Entry with attached sales invoice

Upload INTO ERPNext (maybe use API, or import function), or
Upload FROM ERPNext TO some other system (maybe use webhooks, or API)?

i am using import functions but sales invoice is not attached to the payment entry