REST Api to retrieve referal links

Is there a way I can:

  1. Check to see if a user is in the referal program (by email)?

  2. Get a list of referal links for that user?

Basically I need to be able to display this information from another website that will contain both referal partners and non partners that are logged in using another authentication system (but will be guarenteed to exist by email)

We do not currently have endpoints for that information in the REST API, but you can get them from the Legacy XML-RPC API via the following methods:

https://developer.infusionsoft.com/docs/xml-rpc/#affiliate-program-retrieve-a-program-s-affiliates
https://developer.infusionsoft.com/docs/xml-rpc/#affiliate-retrieve-redirect-links