This can be done by using the /api/3/contactDeals endpoint, which will return all the relationships between deals and contacts.
The filters parameters can be used to filter for a specific contact, and it will return all the deals associated with that contact.
v3 Documentation: https://developers.activecampaign.com/reference#retrieve-a-secondary-contact