I am not sure if I understand your exact requirements, but maybe split pay out is the functionality you are looking for.
https://developer.myccv.eu/documentation/payment_api/online_...
Full disclosure: I work at CCV https://www.ccv.eu/en/solutions/payment-services/online-paym...